Correct syntax for json workflow tool usage
# support
g
Correct syntax for json workflow tool usage with documentation
v
Here is the correct JSON syntax for adding a tool node to a Vapi workflow:
Copy code
json
{
  "nodes": [
    {
      "type": "tool",
      "name": "lookup_customer",
      "toolId": "your-tool-id-here",
      "isStart": false
    }
  ],
  "edges": [
    {
      "from": "previous_node_name",
      "to": "lookup_customer"
    }
  ],
  "name": "Example Workflow"
}
Replace
your-tool-id-here
with your actual tool's ID. For more details, see the [official documentation](https://docs.vapi.ai/tools/custom-tools).
Sources: - [Custom Tools](https://docs.vapi.ai/tools/custom-tools) - [Workflow Controller Create (API Reference)](https://docs.vapi.ai/api-reference/workflow/workflow-controller-create)
Could you clarify which part of JSON workflow tool usage you need help with—are you looking for the syntax to define a tool node in a workflow, the API request format, or something else? Sources: - [Custom Tools Documentation](https://docs.vapi.ai/tools-calling) - [Workflows Quickstart](https://docs.vapi.ai/workflows/quickstart) - [Workflows Overview](https://docs.vapi.ai/workflows/overview)
v
Message marked as helpful by @GILGAMESH! 🎉
Message marked as helpful by @GILGAMESH! 🎉
2 Views