#
Unify AI
Logo
Create an AI Agent
Logo
Prompts

Prompts

Logo

3 mins READ

What are Prompts?

Prompts are the instructions given to AI agents in UnifyApps to initiate tasks. They help the agent understand what action is required and guide the agent’s response.

Prompts play a critical role in guiding AI agents to perform tasks efficiently.

Thumbnail

Note

The clarity and precision of a prompt directly impacts the accuracy and relevance of the agent's output, ensuring proper task completion and meaningful interactions.

Effective prompts reduce confusion, fasten the processes, and enhance the overall performance of the AI Agent. Poorly framed prompts, on the other hand, can result in inaccurate responses, inefficiency, or the need for additional clarifications.

Best Practices to Write Prompts

  1. Use simple and straightforward language to ensure the AI agent easily understands the task. Avoid any vague wording that could confuse you.

  2. Provide detailed prompts to help the Agent interpret and deliver exactly what you're asking for.

  3. Include relevant contextual information so the AI agent can understand the full scope of the task.

  4. Frame your prompts as clear commands or actions to guide the AI agent.

  5. Break down complex tasks into smaller, simpler steps for better task execution.

  6. Include an example of the type of response you expect to help the AI deliver more accurate results.

  7. Test and refine prompts regularly and make adjustments if needed to improve clarity and response quality.

By following these guidelines, you can ensure that your AI agents function properly.

Steps to Add Prompt

  1. In the AI Agents dashboard, select the "Prompts" option from the left-hand sidebar.

  2. On the Prompts page, click the “+ Add Prompt” button. This action will lead you to begin adding a new Prompt to your AI Agent.

    Image
    Image

  3. In the "Prompt Name" field, provide a descriptive name for your prompt that indicates its purpose.

    Image
    Image

  4. Click on the "Prompt Type" dropdown menu and choose the most suitable option for your prompt.

    Image
    Image

    You can choose from the following options:

    1. Systemis an instruction provided to the model to set the context, specify the desired behaviour, or guide its responses. 

    2. Rephraser: Select this when you need the AI agent to rephrase or restructure the input text, helping to improve clarity or change the tone.

    3. Metadata Extractor: Use this option when the AI agent needs to extract specific metadata, such as names, dates, or key phrases from a given input.

    4. Task Selector: This type allows the AI agent to decide the next appropriate action or task based on the input, guiding it through multi-step processes.

    5. Other: For any custom or non-standard prompt types that don't fit into the above categories, select this option to ensure flexibility in handling tasks.

  5. In the "Write your prompt" field, enter the specific instructions you want the AI agent to respond to. Be clear and concise to ensure accurate execution.

  6. On the right, you will find Variables such as Conversation History, User Query, Knowledge, and Available Tasks. Add these to your prompt as needed to make it more dynamic and context-aware.

    Image
    Image

  7. Before finalizing, you can test your prompt by clicking the "Test Prompt" button to ensure it works as intended.

    Image
    Image

  8. Once you’ve entered all details and tested your prompt, click “Save to finalize and add the prompt to your AI agent.

Delete the Prompt

The Delete Prompt feature in AI Agent allows you to permanently remove an existing prompt from your AI agent. Once deleted, the prompt and its configurations will no longer be available for use or modification.

Image
Image


In this way you can add and manage prompts given to AI Agent.

Now, the next step is to add Guardrails to ensure these agents perform tasks safely & ethically. Read the next article to learn about it.