Quickstart - Workbench
Get started with xpander.ai and build your first AI agent
What you will achieve in this quickstart guide:
- Design an AI Agent in the Workbench, including: The AI Agent state machine, tools (API function calling), and system instructions.
- Use the visual tester to test the behavior and tool calling.
- Chat to the AI Agent from an external source (fully hosted Chainlit).
- Apply the design and configuration to an AI Agent in code.
Using the AI Agent Workbench
Log in to the xpander.ai platform.
Go to https://app.xpander.ai and sign in with your credentials.
Open the AI Agent Workbench.
In the left navigation menu, go to AI Agents, then click the New AI Agent button.
Use the Planner to automatically design your AI Agent via a single prompt
For this quickstart, use the following prompt: “Build an AI Agent that is able to get the top stories and their item details from Hacker News”
Your result should be similar to:
Manually add another operation (tool) to the AI Agent: Hover over the bottom operation in the graph -> click the + button. Then, go to xpander functions -> send email -> click Done.
Save your AI Agent configuration by clicking the Deploy button.
Use the Agent Tester (left pane) to prompt your AI Agent and view its behavior live
Insert a test prompt such as: Get the top 3 news items from hackernews and send them over to <your email>
You will see the decision making process in the graph indicated by the moving Purple dot, as well as the request/response process and payloads in the left pane.
“if asked to send an email, use the send_email operation”
You successfully used the AI Agent Workbench to build and test your agent!
Continue the tutorial to trigger and use your AI Agent from external sources.
Chat to you AI Agent from a fully-managed Chainlit instance.
Open Chainlit
Click the Chat trigger node at the top of the graph, and click the URL for your hosted Chainlit instance.
You can continue prompting your AI Agent from this external source.
You successfully chatted to your AI Agent from an external source.