Server Response Format

Call ID: ed43ae5a-2a31-4a17-80d3-ae5c9ef5028d

Dear Vapi Support:

This question is in regard to a Custom LLM implementation. The documentation (1) states:

  1. Receive and Format Response: The response from OpenAI, containing the generated text, is received and formatted according to Vapi’s expected structure.
  2. Send Response to Vapi: The formatted response is sent back to Vapi as a JSON object."
What format am I supposed to send it back as?

I hear the initial "Hello." message. My server receives the followup message from Vapi. However, when I send a response, the message isn't played back to me.

I have tried returning a response in the same format as returned by OpenAI; however, I don't hear the agent's message played back.

(1) https://docs.vapi.ai/customization/custom-llm/using-your-server
Was this page helpful?