Simplest Issue, but no solution. Outbound Announce...
# support
m
We have a customer use-case where we only want Vapi to play a short outbound announcement and immediately end the call afterward. Example flow: “Hello, you currently have 100 unused points within our supermarket bla bla bla.... Thank you, goodbye.” (its almost 15-20 seconds) The customer should not speak at all, no conversation flow is needed, and the call should automatically terminate right after the announcement finishes. The full audio is around 20 seconds. What is the recommended/best-practice way to implement this in Vapi?
v
Recommended Solution: To implement an outbound announcement that ends automatically after playing, use the "Say Message" control with
endCallAfterSpoken: true
. Here’s a cURL example you can adapt:
Copy code
bash
curl -X POST 'https://aws-us-west-2-production1-phone-call-websocket.vapi.ai/<call-id>/control' \
  -H 'content-type: application/json' \
  --data-raw '{
    "type": "say",
    "content": "Hello, you currently have 100 unused points within our supermarket... Thank you, goodbye.",
    "endCallAfterSpoken": true
  }'
This will play your message and automatically terminate the call when finished—no user input required. For more details, see the [Vapi call features documentation](https://docs.vapi.ai/calls/call-features). Source: - [Vapi Call Features Documentation](https://docs.vapi.ai/calls/call-features)
m
I don't understand, how can I find and enter the
<call-id>
value using this curl command? @User @User
@Deadroom fyi.
r
This is just saying sent a call with through api curl 'https://api.vapi.ai/call' -H 'authorization: Bearer YOUR_API_KEY' -H 'content-type: application/json' --data-raw '{ "assistantId": "5b0a4a08-133c-4146-9315-0984f8c6be80", "customer": { "number": "+12345678913" }, "phoneNumberId": "42b4b25d-031e-4786-857f-63b346c9580f" }' then get the control url from there and control that call with Call Control Features https://docs.vapi.ai/calls/call-features#call-control-features I think this is best and easiest way for you! You could connect your crm with an automations to call this so that you can populate the details correctly!