outbound example
# support
s
Can I have a functional outbound example that demonstrates how to build transient assistant ? Thanks. @Shubham Bajaj
@User tag this team as well.
s
@sean wu (opencui) allow me sometime to get it done.
s
For sure, some time this week?
s
By This Week I will get it Done.
s
Thanks.
Any update on this ?
s
Hey @sean wu (opencui) really sorry, to unblock you can you connect on discord OH today?
s
I understand you are busy, I can wait a bit, as long as you are still working on it.
If you just have python example , that will be good enough. You do not have to create one in the kotlin.
@Shubham Bajaj
s
Hey @sean wu (opencui) available for a quick call?
Hey @sean wu (opencui) can this super short, quick example CURL example works for now?
Copy code
curl -X POST https://api.vapi.ai/call \
     -H "Authorization: Bearer " \
     -H "Content-Type: application/json" \
     -d '{
  "phoneNumberId": "",
  "customer": {
    "number": ""
  },
  "assistant": {
    "model": {
      "provider": "openai",
      "model": "gpt-4o",
      "messages": [
        {
          "role": "system",
          "content": "insert-system-prompt-here"
        }
      ]
    },
    "transcriber": {
      "provider": "deepgram",
      "language": "en",
      "model": "nova-2-phonecall"
    },
    "voice": {
      "provider": "11labs",
      "voiceId": "andrea"
    }
  }
}'
s
Let me try
Anything is better than nothing
What about custom llm
Also while u r at it , I can not find the example of using phone number and assistant api to create everything using api
Can we sync real quick tmr?
s
custom-llm for what, I din't get it?
It's the same shared above.
Yes, just let me know the context of the call in advance.
s
so both get and create phone_number can at the same time connect to an assistant for inbound? So, if I want to wire things up via api, I just need to first create assistant, and then use get or create phone_number to connect the phone number with the assistant for inbound. And for outbound, I just need to use a transient assistant ( I do not need to create an assistant, particular if I use custom_llm), am I on the right track?
s
@sean wu (opencui) can i close this ticket now, if resolved for you?
s
for outbound, I guess it is good. I will create another when I ran into more issues. Thanks.
5 Views