# Update Think

Voice Agent

The `UpdateThink` message is a JSON message that you can use to replace the Think provider in the middle of a conversation.

## Purpose

The `UpdateThink` message is a JSON message that allows you to replace the entire Think provider configuration during a conversation, including the model, prompt, endpoint, and functions. This flexibility enables real-time adjustments to the agent's reasoning capabilities, ensuring a more dynamic and responsive interaction tailored to the evolving needs of the conversation.

Unlike [`UpdatePrompt`](/guides/self-hosted-deployments-3-voice-agent-update-prompt), which adds to the existing prompt, `UpdateThink` replaces the entire Think provider configuration. This means you can switch to a different LLM provider, change the model, set a completely new prompt, and reconfigure functions all in a single message.

## Example Payloads

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

**`JSON`**

```json JSON
{
    "type": "UpdateThink",
    "think": {
        "provider": {
            "type": "open_ai",
            "model": "gpt-4o-mini"
        },
        "prompt": "You are a helpful voice assistant."
    }
}
```

Upon receiving the `UpdateThink` message, the server will process all remaining audio data and return a [`ThinkUpdated`](/guides/self-hosted-deployments-3-voice-agent-acknowledgements#thinkupdated) message.

**`JSON`**

```json JSON
{
    "type": "ThinkUpdated"
}
```

## Related pages

- [Inputs: Client Messages](./self-hosted-deployments-3-voice-agent-inputs.md)
- [Settings](./self-hosted-deployments-3-voice-agent-settings.md)
- [Update Listen](./self-hosted-deployments-3-voice-agent-update-listen.md)
- [Update Speak](./self-hosted-deployments-3-voice-agent-update-speak.md)
- [Update Prompt](./self-hosted-deployments-3-voice-agent-update-prompt.md)
- [Inject Agent](./self-hosted-deployments-3-voice-agent-inject-agent-message.md)
- [Inject User](./self-hosted-deployments-3-voice-agent-inject-user-message.md)
- [Force End Turn](./self-hosted-deployments-3-voice-agent-force-end-turn.md)
- [Agent Keep Alive](./self-hosted-deployments-3-agent-keep-alive.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
