Actions31
Tool → Create
AI-generatedSummary
Create a new tool in the Vapi voice AI platform by specifying its type and configuration details.
Inputs
- Tool Type (required) — Select the tool type to create, such as Function, API Request/Webhook, Code, and various integration-specific tools.
- Function Definition (JSON) — Provide a JSON schema defining the function if the tool type is Function or Code.
- Server URL — Specify the webhook server URL to receive tool-call messages, applicable for Function type tools.
- HTTP Method — Select the HTTP method (POST, GET, PUT, PATCH, DELETE) used by the API request tool.
- Request URL (required) — URL called by the API request tool when tool type is API Request/Webhook.
- Code (TypeScript) — TypeScript code to execute on Vapi infrastructure for Code type tools.
- Timeout Seconds — Timeout duration in seconds for Code type tools.
- Integration Fields — Additional integration-specific fields such as calendar ID, credential ID, channel ID, etc., applicable for certain tool types.
- Additional Fields — Extra optional fields like async execution flag, JSON schemas for body and headers, description of the tool, messages, parameters, server configuration, name, and raw body JSON to override structured parameters.
Output shape
a single record returned by the Vapi API representing the created tool object
The output includes the full JSON object of the created tool as returned from the Vapi platform API, merging structured inputs and any advanced raw JSON provided. Errors are returned according to n8n conventions with details if the API call fails.