> For the complete documentation index, see [llms.txt](https://developer.emporix.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.emporix.io/agentic-commerce-intelligence/agentic-intelligence/agent-library/recommended-prompts-agent.md).

# Recommended Prompts Assistant

The Recommended Prompts Assistant suggests ready-to-use starter prompts for testing an agent in AI Assistants.

The **Recommended Prompts Assistant** is a helper agent for **AI Assistants**. When you chat with an agent in [AI Assistants](https://developer.emporix.io/agentic-commerce-intelligence/agentic-intelligence/ai-assistants.md), it suggests starter prompts that fit the selected agent, so you can start testing by selecting a suggestion instead of writing the first message yourself.

Unlike workflow agents that run in production to handle business processes, the Recommended Prompts Assistant supports testing. It does not answer your questions and does not take part in the conversation with the agent you test.

## Purpose

The assistant's purpose is to propose realistic prompts for the agent you selected in **AI Assistants**. It reads the agent's name, description, and prompt, and, if the agent was created from a template, the template's prompt. For agents triggered by commerce events, it also reads the schemas of those events, so it can suggest event payloads that the agent would receive in real use.

The suggestions appear under **Recommended (AI generated)**. Each suggestion has an icon, a short label, and the text that is sent to the agent when you choose it.

## Key benefits

Once you enable the assistant, recommendations are available for every agent you select in **AI Assistants**.

| Benefit                                    | Description                                                                                                                                                            |
| ------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Faster start of testing**                | Choose a suggestion to send a realistic first message, without preparing test data yourself.                                                                           |
| **Event payloads for event-driven agents** | For agents triggered by commerce events, the suggestions are JSON payloads based on the event schema, so you can test the agent the way it is triggered in production. |
| **Fits the selected agent**                | The suggestions are based on the agent's name, description, and prompt, and stay within what the agent is meant to do.                                                 |
| **Variety of scenarios**                   | The assistant varies statuses, amounts, customers, and edge cases, so you can check how the agent behaves in different situations.                                     |

## Enabling the assistant

You can enable the Recommended Prompts Assistant in the following ways:

* In the [AI Agent Library](https://developer.emporix.io/agentic-commerce-intelligence/agentic-intelligence/agent-library.md), where it is listed under **Predefined Agents**.
* In **AI Assistants**. The first time you open the view, recommendations are off and the chat shows **Enable helper agent**. Select it to create the assistant from the predefined template.

After that, the chat suggests prompts for each agent you select. For more information about the chat, see [AI Assistants](https://developer.emporix.io/agentic-commerce-intelligence/agentic-intelligence/ai-assistants.md).

## How it works

When you select an agent in **AI Assistants**, the chat asks the Recommended Prompts Assistant for suggestions in the background. It returns between 1 and 5 recommendations, and aims for 3 to 5 when possible. The assistant works in one of two modes, depending on the agent's trigger.

### Commerce event mode

If the selected agent is triggered by commerce events, the assistant works in commerce event mode. For each recommendation, it does the following:

* Selects one of the agent's events, giving priority to the events most relevant to the agent's purpose, and spreading the recommendations across events when there are several.
* Generates a realistic JSON payload based on the event schema. The payload uses the property names from the schema and consistent business values, such as matching identifiers, currencies, and totals. Deeply nested or optional parts can be left out to keep the payload readable.
* Sends only the JSON payload as the prompt, with no explanation around it.
* Adds a short label that describes the scenario, usually with the event name, for example "Order created – B2B, 3 items", and an emoji icon.

If none of the event schemas can be used, the assistant switches to standard mode.

### Standard mode

If the agent has no commerce event trigger, or as a fallback from commerce event mode, the assistant works in standard mode. It suggests realistic tasks that the agent is meant to handle, based on its name, description, and prompt. Each suggestion is a concrete message, for example with realistic identifiers, product names, dates, or amounts, and has a short, action-oriented label and an emoji icon. The suggestions stay within the capabilities implied by the agent's configuration. Closely related tasks are allowed.

Even when the agent's configuration is short, the assistant infers its purpose from the name and any available text.

### No recommendations

The assistant returns no recommendations only when the agent's name, description, and prompts are all empty or meaningless and no usable event schema is available, or when every possible suggestion would require capabilities the agent clearly does not have. In this case, the chat shows that there are no recommendations for the agent.

## Agent configuration

Once you enable the Recommended Prompts Assistant from the dedicated template, you can adjust its configuration in the AI Agent Library like other predefined agents.

### User prompt

The default prompt instructs the assistant to generate starter prompts for testing the selected agent, in commerce event mode or standard mode, and to return them in a fixed structure. If you change the prompt, keep the output rules, so that the chat can display the recommendations.

<details>

<summary>Default User Prompt for Recommended Prompts Assistant</summary>

```
You generate starter prompts for testing a selected AI agent. Your goal is to produce useful recommendations whenever reasonably possible. Returning no recommendations is a last resort.

INPUT FORMAT

You receive:
- Target agent name
- Target agent description
- Target agent prompt
- Optional target agent template prompt
- Optional commerce event subscriptions

COMMERCE EVENT MODE

Use this mode when at least one commerce event subscription is provided.

For each recommendation:
1. Select one provided event.
2. Generate a realistic JSON payload based on that event's schema.
3. Put the serialized JSON payload in `prompt`. The prompt must be JSON only: no Markdown fences, explanations or prefixes.
4. Create a short `label` describing the scenario, preferably with the event name (for example "Order created – B2B, 3 items").
5. Select one relevant emoji for `icon`.

Payload rules (best effort, do not refuse because of these):
- Use property names from the schema. Do not invent top-level properties absent from the schema.
- You may omit deeply nested or clearly optional parts to keep the payload readable, but always include identifiers and the fields most relevant to the target agent's purpose.
- Use realistic, consistent business values (matching ids, currencies, totals).
- Do not use placeholders such as "<value>", "TODO", "example", "String", "Number".
- Vary scenarios across recommendations (different statuses, amounts, customers, edge cases relevant to the agent).
- Spread recommendations across events when several are provided, prioritising events most relevant to the target agent's description and prompt.
- Generate 3–5 recommendations in total when possible, never more than 5.

Skip only a schema that is empty or completely unreadable; still use the other schemas.
If no provided schema is usable, fall back to STANDARD MODE instead of returning no recommendations.

STANDARD MODE

Use this mode when no commerce event subscriptions are provided, or as a fallback from commerce event mode.

Generate starter prompts based on the target agent name, description, prompt and optional template prompt.

For each recommendation:
- Suggest a realistic task the target agent is meant to handle.
- Put the exact text to send to the agent in `prompt`. Make it concrete (include realistic ids, product names, dates or amounts when helpful).
- Use a short, action-oriented `label`.
- Select one relevant emoji for `icon`.
- Stay within capabilities implied by the configuration. Reasonable, closely related tasks are allowed.
- Generate 3–5 recommendations when possible, at least 1.

Even when the configuration is short, infer the purpose from the agent name and any available text and propose recommendations.

WHEN TO RETURN NO RECOMMENDATIONS

Return {"hasRecommendations":false,"recommendations":[]} only when:
- the name, description, prompt and template prompt are all empty or meaningless, and no usable commerce event schema is provided, or
- every possible recommendation would require capabilities the agent clearly does not have.

OUTPUT RULES

- Always return output matching the configured RecommendedPrompts structured-output schema.
- Return no text outside the structured response.
- When `hasRecommendations` is true, return between 1 and 5 recommendations.
- When `hasRecommendations` is false, return an empty `recommendations` array.
- Every recommendation must contain non-empty `icon`, `label` and `prompt` values.
```

</details>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.emporix.io/agentic-commerce-intelligence/agentic-intelligence/agent-library/recommended-prompts-agent.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
