Skip to navigation

Webhooks

Give your receptionist custom tools that call your HTTP endpoints.

The Webhook Tool integration exposes your HTTP endpoints as tools that your receptionist or business assistant can call during conversations. The AI decides when to call the endpoint based on the conversation.

How webhook tools work

When you create a webhook tool, you define:

  1. An HTTP endpoint to call.
  2. A description of what it does, so the AI knows when to use it.
  3. Parameters the AI should collect from the conversation.

During a call, when the conversation matches the tool’s purpose, your receptionist collects the parameters, calls the endpoint, and uses the response to continue the conversation.

Creating a webhook tool

Go to Integrations, select Add integration, and choose Webhook Tool. Configure the fields below and select Enable. You can add multiple webhook tools.

FieldDescription
NameTool name the AI sees, for example check_order_status
DescriptionWhen and why to use this tool
MethodGET, POST, PUT, PATCH, or DELETE
URLYour HTTP endpoint
Response timeout (seconds)How long to wait for your server: 5–120 seconds, default 20
Assign to agentsReceptionist, Assistant agent, or both
Disable interruptionsPrevent the caller from interrupting while the tool runs
Request HeadersOptional headers sent with every request. Type is Value or Secret. A Secret is stored encrypted and is never shown again. A header brought from ElevenAgents can show Environment variable or Variable, with a note that it is set in the agents platform.
Path ParametersShown when the URL contains placeholders in curly braces, such as /orders/{order_id}. Edit the URL to add or remove one.
Body ParametersParameters sent as a JSON request body, shown for POST, PUT, and PATCH. They can be objects and lists.
Query ParametersParameters sent as URL query strings. Each one is a single value.

Parameters

Each parameter has:

  • Key: the field name. Use letters, numbers, underscores, hyphens, @, and single dots. Square brackets aren’t allowed, so an API that expects keys like filter[name] can’t be called directly.
  • Type: string, number, integer, or boolean. Body parameters can also be object or array.
  • Value: From the conversation, filled in by the AI, or a Fixed value, sent with every request.
  • Description: what value the AI should extract from the conversation.
  • Required: whether the AI must collect it before calling.

Use integer for whole numbers such as counts, IDs, and 0/1 flags. A fixed number is sent with a decimal point, so 1 arrives as 1.0, which some APIs reject.

A parameter set up in ElevenAgents to take its value from a variable shows as read-only, with a note that it’s set in the agents platform. It’s sent as configured there.

Objects and lists

Many APIs expect related fields grouped together, such as a contact with a list of phone numbers. Body parameters can send these:

  • An object groups fields. Select Add field to add each one; every field has its own key, type, and value.
  • An array is a list. Under Each item, choose the type of its items. A list of objects lets the AI send several entries of the same shape, such as one per phone number.

Fields can nest up to five levels deep. An object or a list always comes from the conversation, but a field inside an object can have a Fixed value, such as a label or an ID that never changes.

For example, these body parameters:

  • name: string, from the conversation
  • phones: array, where each item is an object with two fields:
    • number: string, from the conversation
    • label: string, fixed to mobile
  • source: object with one field, channel: string, fixed to phone

send a request body like this:

{
"name": "Jane Doe",
"phones": [{ "number": "+15551234567", "label": "mobile" }],
"source": { "channel": "phone" }
}

Use cases

ScenarioDescriptionMethod
CRM lookupLook up customer info in your systemGET
Inventory checkCheck product availability in real timeGET
Lead captureSend caller details to your marketing systemPOST
Ticket creationCreate a support ticket during the callPOST
Price quoteCalculate a custom quote based on caller requirementsPOST

Example

A plumbing business creates a webhook tool:

  • Name: check_service_area
  • Description: “Check if we service the caller’s zip code and what the next available slot is.”
  • URL: https://api.mybusiness.com/check-area
  • Method: POST
  • Request Headers: Authorization set to the business’s API key, as a Secret
  • Body Parameters: zip_code (string, required), service_type (string, required)

When a caller asks about service in their area, the receptionist collects their zip code, calls the webhook, and tells them the result.

Webhook tools are available on every plan.