Connecting vapi & Tools with Django
# support
m
I want a complete document that gives information about how to connect Vapi voice assistant and tools with Django. Provide the document with a complete example including all these.
s
Here are the steps for "**Connecting Vapi voice assistant and tools with Django**":- 1. Create an endpoint using django 2. Create an tool and define it's input parameters. - Rewrite the tool description around it's definition, usage, parameters, expected input parameters, and optionally output - Add the description for input parameters (one-liner). NOTE The Idea is to maintain similarity search between the prompt and tool description. 3. Now attach the functions with your assistant - Trigger the tools as
trigger the <tool-name> tool with inputParameter1, inputParameter2, inputParameter3, ..., inputParameterN
NOTE Replace with actual tool name. - Vapi will send input parameters according to Json Schema. 4. Inside your django api endpoints return the response as:-
Copy code
json
{
    "results": [
        {
            "toolCallId": "X",
            "result": "Y"
        }
    ]
}
NOTE Ensure result is always returned in string format.
@Manjunath DC do let me know what else do you require and How best I can help you?
m
Can we have a call for 5 to 10 min, so that I will show my application and I will get my doubts cleared. Let's know your availability time ( mention the zone ) I will connect
s
check your DM.
m
Yes 🤚
6 Views