> For the complete documentation index, see [llms.txt](https://anunzi-ai.gitbook.io/anunzi-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://anunzi-ai.gitbook.io/anunzi-docs/api-widgets/trabajar-con-la-api-de-llamadas/calls/dynamic-prompt-injection.md).

# Inyección dinámica de prompt

Enhance the interactivity and relevance of your AI phone call agents by dynamically modifying the prompt the model uses.

ℹ️ **Note:**\
Customize the behavior of your Voice AI Phone Call Agents by dynamically changing the prompt in real-time.

***

#### **Overview**

**Dynamic Prompt Injection** allows you to tailor the interactions of your AI agents, providing a more personalized and contextually relevant experience. By sending customized prompts via API requests, you can guide the AI's conversation flow based on specific user needs or situational requirements.

***

#### **Use Cases**

✅ **Customized Interactions**

* Adapt the AI agent's behavior to suit different scenarios, such as customer support, sales inquiries, or technical assistance.

✅ **Contextual Responses**

* Generate responses that are relevant to the current conversation, taking into account the user's previous inputs or questions.

✅ **Per-conversation Adaptability**

* Change the AI's approach or tone based on the conversation's progression or prior customer interactions.

***

#### **How to Use Dynamic Prompt Injection**

To modify the AI's behavior in real-time, send custom prompts as part of your API request payload. This enables the AI to adapt its responses based on the provided prompt.

**API Request Example**

```json
{
  "model_id": "1726573550709x928456706859452600",
  "phone": "+1234567890",
  "name": "David",
  "prompt": "You are a customer service agent assisting with product inquiries."
}
```
