Watch the Video Guide
If you prefer a visual walkthrough, check out the accompanying video guide below:Follow the Step-by-Step Tutorial
For detailed, written instructions, follow along with this comprehensive guide to complete your setup:Accessing the Agent.ai Platform
- Open your preferred web browser and navigate to agent.ai.
- Log in using your credentials, If you don’t have an account, click Sign Up and complete the registration process.
Create an Agent
- Navigate to the Agent Builder option in the platform’s navigation bar and click on it to proceed.
- Click on the Create Agent button located on the right-hand side of the screen.
- In the popup window, select the Start from Scratch option to begin configuring your new agent.
Note: Any changes made under the available tabs are automatically saved, so you don’t need to manually save your progress.
Configuring Basic Agent Details
Go to the Settings tab and provide the following information:- Agent Name: Enter a unique name, such as “Real-Time Search.”
- Icon URL: Use your custom URL or the following default icon:
https://dappierassets.b-cdn.net/dappier_real_time_logo.png - Agent Description: Summarize the agent’s functionality.
Example: “Access real-time Google web search results, including the latest news, weather, travel, deals, and more.” - Agent Username: Assign a username for the agent.
- Tags: Add tags to categorize the agent’s purpose.
- Runtime Details: Specify the anticipated runtime for the agent’s operations
Setting Up Triggers
- Navigate to the Trigger tab.
- Set the trigger option to Manual Only if the agent will only be triggered from the Agent.ai platform.
Setting Up Actions
Step 1: Adding User Input
- Click on Add Action and select User Input > Get User Input.
- User Prompt: Provide guidance for users. Example: “Enter your message.”
- Optional Examples: Add examples to clarify input expectations.
- Required Field: Enable this option to make input mandatory.
- Default Value: Leave as-is unless a specific value is needed.
- Output Variable Name: Save the user’s input in a variable, such as user_message.
Step 2: API Integration
- Click on Add Action and select Advanced > Invoke Web API.
- Configure the API request:
- URL: Use the following endpoint:
https://api.dappier.com/app/aimodel/am_01j06ytn18ejftedz6dyhz2b15
(Explore other AI models on the Dappier Marketplace.) - Request Type: Set to POST.
- Headers: Input the following in JSON format:
{ "Authorization": "Bearer your-api-key", "Content-Type": "application/json" } - Replace “your-api-key” with your actual API key, which can be retrieved from Dappier Profile API Keys.
- Set the JSON Body to the following, using string interpolation to incorporate the user input from the previous step (stored as user_message):
{ "query": "{{user_message}}" } - Output Variable Name: Save the API response to a variable, such as
assistant_message.
Step 3: Displaying Output
- Click on Add Action and select Create Output > Show User Output.
- Heading Name: Enter a heading for the displayed result.
- Formatted Text Box: Insert the
assistant_messagevariable using the syntax:
{{assistant_message['message']}}.
Publishing Your Agent
- Go to the Settings tab and locate the Sharing & Visibility section.
- Request to make the agent public by selecting the appropriate option.
Testing and Sharing Your Agent
- Click on Run Agent in the top-right corner to test its functionality and view results.
- Share the agent’s link with colleagues, friends, or family to showcase your creation.
This guide ensures you have all the details needed to build,
configure, and integrate real-time data from Dappier RAG models,
with the Agent.ai platform! Happy building! 🚀
