# Improving prompts with AI

{% embed url="<https://www.tella.tv/video/editing-prompts-9mur?b=0>" %}

### **✨ Improving Prompts with AI**

To try it out, go to any of the **⚙️ Advanced Settings.**

<figure><img src="/files/X40S0lrpGwKHdVjiQyEp" alt=""><figcaption></figcaption></figure>

#### 💡 How It Works:

1. ✍️ **Highlight** any part of your prompt you'd like to improve.

<figure><img src="/files/RdjSDcf4IHphtIIEys0a" alt=""><figcaption></figcaption></figure>

2. 🛠️ Click the **“Improve”** button that appears.\
   \
   ![](/files/TB8YDOPpkPuOEX0b1Yl2)
3. 💬 A prompt will ask how you’d like to improve it (e.g. clearer, friendlier, more concise). And click "Improve".

<figure><img src="/files/nwOudS2WqjXM65OhT7RK" alt=""><figcaption></figcaption></figure>

4. 🤖 The AI suggests a new version.

<figure><img src="/files/YfgwRVWVxTqAENxXZX0D" alt=""><figcaption></figcaption></figure>

5. ✅ **Accept** or ❌ **Reject** the change—just like editing a doc!

<figure><img src="/files/DOyaRglrK5UwIYD1zXQg" alt=""><figcaption></figcaption></figure>

This is perfect for tightening up language, improving tone, or making your prompt easier for agents to follow.\ <br>

***

### **🌟** Improve with AI (Below Prompt)

Use this option to improve your entire prompt at once.\
\
💡 How It Works:

1. 📄 Scroll to the bottom of the prompt editor.
2. ✨ Click the **“Improve with AI”** button.
3. 🤖 The AI will analyze your full prompt and suggest broader changes—this might include rewording, restructuring, or improving tone.

<figure><img src="/files/6NgcKPjhgDlZW8UoS4Dw" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/ge0x9W1zcnbAkTfmBR7x" alt=""><figcaption></figcaption></figure>

4. 👀 Review the side-by-side comparison of old vs. suggested changes.

<figure><img src="/files/lFwLCrJWFRW51M3NBJzg" alt=""><figcaption></figcaption></figure>

5. ✅ Click **Accept Changes** or ❌ **Reject Changes**.

Ideal for refining the overall structure, tone, and clarity of your prompt with a single click.

***

### Updating Your Agent Context:

Once you have created your agent and have given it a language, name, purpose, etc. You must use the improve functionality for these changes to apply in your prompt.

How it works:

1. Edit any component in the "Context" tab
2. You will see the Improve with AI window pop up with a pre-defined prompt

<figure><img src="/files/7fzO5zmdLU2NK6HjN4En" alt=""><figcaption></figcaption></figure>

3. Hit "Improve" for the changes being made on the left panel to be applied to your prompt.

<figure><img src="/files/49gdNvdWPVbA12jnqdWR" alt=""><figcaption></figcaption></figure>

4. Accept or Reject the changes made

<figure><img src="/files/4tkqGG4sNzJX6eccsk2M" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dapta.ai/ai-voice-agents/how-to-set-up-your-ai-voice-agent/improving-prompts-with-ai.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
