# Inject User

Voice Agent

The `InjectUserMessage` is a JSON message you can send to the agent to interact with the agent using text. This is useful when you need to trigger an agent response from text input.

## Purpose

The `InjectUserMessage` message provides a way to have the agent "hear" something without the user actually speaking it. The agent will respond as if the user had spoken the message.

## Example Payloads

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

**`JSON`**

```json JSON
{
  "type": "InjectUserMessage",
  "content": "" // The text phrase or statement the agent should listen for
}
```

## Use Cases

Some common ways to use the `InjectUserMessage` are:

- A user using a chat or text interface to interact with an agent.
- Automated testing of an agent where text is used to trigger an agent response.

## 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 Think](./self-hosted-deployments-3-voice-agent-update-think.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)
- [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.
