...
When you create an AI Agent, it consists of two parts:
1. Define Agent
This is the brain of your AI Agent. You define:
...
Example: You can set a default prompt like "Summarize this document in simple terms" or "Find the latest pricing information."
2. Task Setup
The Task section defines what the agent will actually do. By default, this section is named First Task. You can create multiple tasks in a sequence, allowing the agent to process input step by step, such as retrieving data, formatting a response, or calling an API. Each task is made up of three key components,which are Prompt, Tool, and Enhancer.
...
Prompt:
The system first sends the defined prompt to the LLM (Large Language Model).Tools (Optional):
If the response requires additional functionality, such as calling an API, retrieving data, or executing database queries,the appropriate tool is invoked after the prompt.Enhancers (Optional):
Once the output is generated (after Prompt + Tool), Enhancers are triggered last. These allow you to store the output in a form field, process a variable, or modify the result before final use.
Execution Order
...
- In a new app or an existing app, navigate to the App Composer.
- Under AI Agent, click the ADD NEW button to create a new AI Agent.
- Provide an ID, Name, and Description for the API connector, and click Save.
- When the AI Agent Builder is launched, you will see a Define Agent action and a First Task section.
- Under Define Agent, click LLM Service to configure a large language model. Since OpenAI is currently the only supported model, configure the following:
- For Model, select an OpenAI model.
- For API Key, specify an LLM key obtained from OpenAI.
- Optionally, for Proxy Domain, if your environment routes API calls through a proxy, specify the domain here.
- Click Apply Changes.
- By default, a Persona prompt is in the Define Agent section. You may delete by clicking the Remove button and replace it with a new prompt by dragging and dropping it from the palette. If you choose to retain it, you can configure it by clicking on it:
- For Role, specify the position, character, or responsibility the AI is expected to take on. By default, it is Research Analyst & Tech Writer.
- For Backstory, specify a brief background or experience for the AI to adopt, which helps add realism or specific domain knowledge. The default values are:
Your writing is insightful, well-researched, and future-oriented, with a focus on:
- Technical deep dives
- Industry impact analyses
- Ethical and societal discussions
- Comparative studies
Your goal is to educate and inspire businesses, researchers, and enthusiasts about ${query}. - Click Apply Changes.
- Under First Task, a default Text Prompt is in the Drop a prompt to here section. You may delete it or configure it if you choose to retain it.
- Drag and drop a tool from the Tools section of the palette into the Drop a tool to here section. Click on the tool to configure it.
- Drag and drop an enhancer from the Enhancers section of the palette into the Drop an enhancer to here section. Click the enhancer to configure it.
- If needed, you can rename the First Task section to any desired name by clicking on the section, specifying a Task Name, and clicking Apply Change.
- Additionally, you can add a New Task section by clicking the Add Task
button beside existing tasks. - Click Save to save the AI Agent.
Configure AI Agent Builder Properties
...