Skip to main content
Deepgram's Docs

Search documentation

Type to search this documentation.

On this pageOverview

Update Prompt

Voice Agent

The UpdatePrompt message is a JSON message that you can use to update the system prompt of the agent.

The UpdatePrompt message is a JSON message that allows you to update the system prompt of the agent. UpdatePrompt will add to – not replace – the current prompt. This flexibility enables real-time adjustments to the agent's behavior, ensuring a more dynamic and responsive interaction tailored to the evolving needs of the conversation.

Prompt length is limited to 25,000 characters for managed LLMs and unlimited for BYO LLMs.

To send the UpdatePrompt message, you need to send the following JSON message to the server:

JSON

JSON
{
  "type": "UpdatePrompt",
  "prompt": "" // The new system prompt
}

Upon receiving the UpdatePrompt message, the server will process all remaining audio data and return a PromptUpdated message.

JSON

JSON
{
    "type": "PromptUpdated"
}
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu