> For the complete documentation index, see [llms.txt](https://docs.aisera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aisera.com/aisera-platform/ai-automation-optimize-flow/hyperflow-studio/hyperflow-prompt-optimization.md).

# Hyperflow Prompt Optimization

Use the Optimization command on the **Prompt Details** window for a Hyperflow to increase the efficiency of your hyperflow prompts. **Prompt Optimization** improves consistency, accuracy, and repeatability across runs, contexts, and users, without requiring any prompt-writing expertise.

**To use the Hyperflow Prompt Optimizer:**

1. Navigate to **AI Automation > Hyperflows** in the Aisera Admin UI.
2. Make sure the correct application/bot is shown in the upper-left corner of the Hyperflows window.

<figure><img src="https://docs.aisera.com/~gitbook/image?url=https%3A%2F%2Fcontent.gitbook.com%2Fcontent%2FiZkLJr3EjXkd2tHYiQJP%2Fblobs%2F6J7wL7GSo8qsayyfGhmN%2FUnknown%2520image&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=1302b39b&#x26;sv=2" alt=""><figcaption></figcaption></figure>

3. Choose one of the Hyperflows to open the **Hyperflow Details** window for the chosen hyperflow.
4. Open a Hyperflow and click **the pencil icon** in the upper-right side of the window to make any changes.

<figure><img src="https://docs.aisera.com/~gitbook/image?url=https%3A%2F%2Fcontent.gitbook.com%2Fcontent%2FiZkLJr3EjXkd2tHYiQJP%2Fblobs%2FxzKGCQ8Ejo82wBS2YzDT%2FUnknown%2520image&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=a3086979&#x26;sv=2" alt=""><figcaption></figcaption></figure>

5. Choose the **pencil icon** next to the word **Prompt** at the top left of the window. This action brings you to the **Hyperflow Prompt Editor**.
6. Click the pull-down menu next to the three horizontal dots above the right side of the prompt editor canvas and choose **Optimize**.

<figure><img src="https://docs.aisera.com/~gitbook/image?url=https%3A%2F%2Fcontent.gitbook.com%2Fcontent%2FiZkLJr3EjXkd2tHYiQJP%2Fblobs%2F3ZcjTAx6X7ZyltnpdMED%2FUnknown%2520image&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=cbc297d5&#x26;sv=2" alt=""><figcaption></figcaption></figure>

7. This action causes the Aisera Gen AI Platform to optimize the content in your prompt editor canvas.
8. Once optimized, you can:

* Review the improved prompt
* Edit it further if needed
* Revert to the previously saved version at any time

To revert the optimization, open the three-dot menu again and select **Revert**.

### **App Instructions Prompt Supports Hyperflows**

The **App Instructions** prompt now supports Hyperflows in the **\[Action]** field, in addition to standard workflows. When a Hyperflow exists that matches a user Request, it will be identified and returned automatically. If both a Hyperflow and a Workflow exist for the same query, the Hyperflow takes precedence, allowing you to take advantage of more powerful, complex workflows where available.

To configure **App Instructions**, navigate to **LLMs > Prompts Studio** in the Aisera Admin UI and select the **convai\_app\_instructions\_prompt\_gpt4\_chat\_completions** prompt.

<div align="left"><figure><img src="/files/c52hB9UBqlHEhRrbbDUd" alt="" width="563"><figcaption></figcaption></figure></div>

Select (double-click) the prompt to open the **Prompt Playground** that allows you to customize and modify the prompt.

<div align="left"><figure><img src="/files/XwvH6He0WCbNirwoYS1w" alt="" width="563"><figcaption></figcaption></figure></div>

Enter information between the **\<actions>\</actions>** tags within the code in the **System message** field.

### &#x20; <a href="#enhancements" id="enhancements"></a>
