> 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.

![](https://docs.aisera.com/~gitbook/image?url=https%3A%2F%2Fsupport.aisera.com%2Fhc%2Farticle_attachments%2F45329871529741\&width=768\&dpr=3\&quality=100\&sign=b8765870\&sv=2)Select Prompt

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

![](https://docs.aisera.com/~gitbook/image?url=https%3A%2F%2Fsupport.aisera.com%2Fhc%2Farticle_attachments%2F45329871530765\&width=768\&dpr=3\&quality=100\&sign=2dbe7d08\&sv=2)System message field in Prompt Playground

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

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.aisera.com/aisera-platform/ai-automation-optimize-flow/hyperflow-studio/hyperflow-prompt-optimization.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
