Webhooks
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:
- An HTTP endpoint to call.
- A description of what it does, so the AI knows when to use it.
- 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.
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 likefilter[name]can’t be called directly. - Type:
string,number,integer, orboolean. Body parameters can also beobjectorarray. - 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
objectgroups fields. Select Add field to add each one; every field has its own key, type, and value. - An
arrayis 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 conversationphones: array, where each item is an object with two fields:number: string, from the conversationlabel: string, fixed tomobile
source: object with one field,channel: string, fixed tophone
send a request body like this:
Use cases
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:
Authorizationset 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.