request-start Phrase
# support
j
With a tool start phrase are we able to have multiple options like with the default. This would be huge so the call doesn't keep having the same message if the tool is used more than once. { "messages": [ { "type": "request-start", "content":
v
@jason Absolutely, you can set up multiple options for the tool start phrase to provide variety in the messages. This can help make the interactions feel more dynamic and less repetitive. If you need assistance with setting this up or have any specific requirements for the messages, please let me know, and I'd be happy to help!
You can continue this conversation by mentioning me in the message.
j
@User Yes I need help setting this up. That is why I'm here. Thanks
v
Got it. Tagging @User for additional help.
s
@jason check components > schemas > ToolMessageStart from here https://api.vapi.ai/api-json#
j
@Shubham Bajaj thanks for this but can you please give me a little more context. This is just a little above my API knowledge. Thanks
@Chowderr I thought of you with this one. When we talked in skools we couldn't figure out it there was the options of multiple Start Messages for tools. Shubham has answered... but above my knowledge. Are you able to translate for me?
s
@jason check this, this is how your supposed to add multiple request-start messages and can even add conditions as well.
Copy code
curl --request POST \
  --url https://api.vapi.ai/tool \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "async": false,
  "messages": [
    {
      "type": "request-start",
      "content": "first-contetn"
    },
    {
      "type": "request-start",
      "content": "second-cotent"
    },
    {
      "type": "request-start",
      "content": "third-contetn"
    }
  ],
  "type": "dtmf"
}'
j
@Shubham Bajaj Thanks so much for this. This is a HUGE help!! You should put this into your API docs for other people to know as this is a big deal. When you say conditions is the condition based on what they say. For example if they ask a question about payment types or if they ask a question about a specific service. I only ask as because we are running our KB externally due to running a squad this could be something to play with also. Thanks again for your help!!
s
@jason conditions are checked using logical operator around pre-defined parameters in your tool context.
3 Views