Create a custom API integration
Save a call to your own HTTP endpoint as an integration.
Attach it to an agent with attachAgentIntegration. The agent calls the
endpoint during a call when the conversation needs it, then uses the
response in its reply. The agent fills parameters marked isLLMGenerated
from the conversation.
Body
namestringrequiredA name for the integration.
urlstringrequiredFormat uri
methodenumrequiredOne of: GETPOSTPUTPATCHDELETE
descriptionstringWhat the endpoint does. The agent reads this to decide when to call it, so say what it returns and when it is useful.
headersobject[]Fixed headers sent on every request.
+ Show child fields (2)− Hide child fields
keystringrequiredvaluestringrequiredquery_paramsobject[]Query string parameters.
+ Show child fields (6)− Hide child fields
keystringrequiredThe parameter name your endpoint expects.
descriptionstringWhat the agent should put here, or the fixed value when isLLMGenerated is false.
typeenumOne of: stringnumberbooleanobjectarray
Default string
requiredbooleanWhether the agent must supply this parameter.
isLLMGeneratedbooleanLet the agent fill this value from the conversation.
Default true
childrenunknownNested fields of an object or array body parameter. Query parameters have no children.
body_paramsobject[]Request body fields, sent as JSON. A GET request sends no
body. Every request with a body also carries the call's
from_number, to_number and call_sid.
+ Show child fields (6)− Hide child fields
keystringrequiredThe parameter name your endpoint expects.
descriptionstringWhat the agent should put here, or the fixed value when isLLMGenerated is false.
typeenumOne of: stringnumberbooleanobjectarray
Default string
requiredbooleanWhether the agent must supply this parameter.
isLLMGeneratedbooleanLet the agent fill this value from the conversation.
Default true
childrenunknownNested fields of an object or array body parameter. Query parameters have no children.
request_timeoutintegerSeconds to wait for your endpoint before the agent moves on.
Default 10
user_idintegerresellers onlyReseller keys only: act as one of your clients by its user id. Omit it to act on your own account. How acting for a client works.
Was this page helpful?
