Send a message to update the system prompt of the agent.

Voice Agent

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

Purpose

The UpdatePrompt message is a JSON message that allows you to update the system prompt of the agent. 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.

Example Payloads

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

JSON
1{
2 "type": "UpdatePrompt",
3 "prompt": "" // The new system prompt
4}

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

JSON
1{
2 "type": "PromptUpdated"
3}
Built with