Skip to content

Invoke

The Invoke component makes HTTP requests to external services or APIs. Use it to fetch data from third-party services, trigger webhooks, or integrate with any REST endpoint directly from your agent workflow.

Use Invoke when your agent needs to:

  • Retrieve live data from an external REST API (e.g., marketing asset data, weather, stock prices)
  • Trigger a webhook or automation in another system
  • Send a POST/PUT request with a dynamically generated payload
ParameterTypeDefaultDescription
Urlstring"http://"The HTTP endpoint to call.
Methodstring"GET"The HTTP method: GET, POST, PUT, DELETE, etc.
Timeoutnumber60Request timeout in seconds.
Headersstring (JSON){"Accept": "*/*", "Cache-Control": "no-cache", "Connection": "keep-alive"}HTTP headers as a JSON string.
Proxystring"http://"Proxy URL if required.
Clean HTMLbooleanfalseWhether to strip HTML tags from the response body.
Mimetypestring""Expected response content type (e.g., application/json). If set, the component will attempt to parse the response accordingly.
API Key Configurationarray[object]Configure API keys for specific URLs. Keys will be automatically added to Authorization headers when matching URLs are detected.
Path Parameter Configurationarray[object]Configure path parameters to be substituted in URLs. Use {paramKey} placeholders in URLs. E.g., /company/{companyId}/reports with companyId=123 becomes /company/123/reports.
Query Parameter Configurationarray[object]Configure query parameters to be appended to URLs. Parameters will be merged with existing query parameters when matching URLs are detected. Use {paramKey} placeholders in URLs. E.g., /search?q={query} with query=AI becomes /search?q=AI.
Whitelist Keysarray[]List of response keys to include in the output. If empty, all keys are included. Useful for filtering large API responses.
  1. Add the Invoke component to your canvas.

  2. Set the URL to the target endpoint.

  3. Select the appropriate HTTP method.

  4. Configure custom headers if the API requires authentication (e.g., Authorization: Bearer <token>).

  5. Connect an upstream Generate or Template component to produce the request body dynamically.

  6. Connect the Invoke output to a downstream Generate component to interpret and format the API response for the user.