Get Started
Quickstart
Get started with Truffle AI in minutes
This guide will help you get started with Truffle AI by creating and using your first AI agent.
Installation
Install the Truffle AI SDK using npm:
Basic Usage
1. Initialize the Client
Login to Truffle AI, go to settings page and get your API key.
Use this to create a new TruffleAI client:
2. Create an Agent
Deploy a new AI agent with specific instructions:
You can also create agents directly on the platform.
3. Using Your Agent
You can use your agent in two ways:
Run One-off Tasks
For single tasks or questions:
Chat Sessions
For interactive conversations with context:
Agent Management
Loading Existing Agents
Load a previously created agent:
You can see all your agents on the agents page. Get agent ids by clicking on the info button on the agent card.
Complete Example
Here’s a complete example showing various agent operations:
Next Steps
Now that you’ve created your first agent, you can: