agent_functions_create_http
Create an HTTP/webhook Agent Function the receptionist calls during live calls. waitForResponse=false sends it in the background without waiting for the reply (slow webhooks). Pass agentId to attach it in the same step. Show the exact function, receptionist, behaviour, active state, endpoint (HTTP) and code/test summary (Code), then get explicit confirmation before calling. Never repeat secret header values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| name | Yes | Function name the receptionist sees as a tool, e.g. "check_order_status". | |
| method | Yes | ||
| agentId | Yes | Optional receptionist ID from listAgents to attach the function to right away. | |
| headers | Yes | HTTP headers as plain key/value pairs. Header values may contain secrets; never repeat secret values in the confirmation or final response. | |
| isActive | Yes | Whether receptionists may call it. Default true. | |
| description | Yes | What the function does, in one or two plain sentences. | |
| inputSchema | Yes | ||
| instruction | Yes | When and how the receptionist should call it on a live call, e.g. "Call when a caller asks where their order is; ask for the order number first." | |
| waitForResponse | Yes |