No just add the tool call.
# general-english
c
No just add the tool call.
d
do you mean, to add it into CreateCall? Something like this?
Copy code
{"assistant": {"model": {
            "semanticCachingEnabled": True,
            "tools": [
                {
                    "type": "function",
                    "async": True,
                    "function": {
                        "name": "sendMessage",
                        "description": "Sends message to customer",
                        "parameters": {
                            "type": "object",
                            "required": ["fromPhoneNumber"],
                            "properties": {"fromPhoneNumber": {
                                    "type": "string",
                                    "description": "Phone number from which AI is calling",
                                    "required": [None]
                                }}
                        }
                    },
                    "server": {
                        "url": "https://my.api.ai/sendMessage",
                        "secret": "mySecretApiKEY"
                    }
                }
            ]
        }}}
c
Are you doing a cURL?
d
I'm calling it from my python service
but I used docs.vapi.ai to create this particular example
c
I don't know if it's discord formatting but that tool looks very wrong - but I barely know Python. You can compare it to what I attached. I dont use dashboards assistants but same thing.
c
Same thing. I only use API.
d
ah yes, sorry you are correct
I will give it a try 👍