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.
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
Use simple and straightforward language to ensure the AI agent easily understands the task. Avoid any vague wording that could confuse you.
Provide detailed prompts to help the Agent interpret and deliver exactly what you're asking for.
Include relevant contextual information so the AI agent can understand the full scope of the task.
Frame your prompts as clear commands or actions to guide the AI agent.
Break down complex tasks into smaller, simpler steps for better task execution.
Include an example of the type of response you expect to help the AI deliver more accurate results.
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
In the AI Agents dashboard, select the "
Prompts
" option from the left-hand sidebar.On the Prompts page, click the “
+ Add Prompt
” button. This action will lead you to begin adding a new Prompt to your AI Agent.In the "
Prompt Name
" field, provide a descriptive name for your prompt that indicates its purpose.Click on the "
Prompt Type
" dropdown menu and choose the most suitable option for your prompt.You can choose from the following options:
System
: is an instruction provided to the model to set the context, specify the desired behaviour, or guide its responses.Rephraser
: Select this when you need the AI agent to rephrase or restructure the input text, helping to improve clarity or change the tone.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.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.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.
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.On the right, you will find Variables such as
Conversation History
,User Query
,Knowledge
, andAvailable Tasks
. Add these to your prompt as needed to make it more dynamic and context-aware.Before finalizing, you can test your prompt by clicking the "
Test Prompt
" button to ensure it works as intended.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.
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.