Quick Start¶
Get AG2Trust up and running in 5 minutes.
Step 1: Sign Up and Log In¶
- Go to app.ag2trust.com
- Sign up with your email or Google account
- Complete the onboarding flow
Step 2: Add an LLM Provider¶
AG2Trust needs access to an LLM provider (OpenAI or Anthropic) to power your agents.
- Navigate to Settings > Providers
- Click Add Provider
- Select your provider (OpenAI or Anthropic)
- Enter your API key
- Click Save
Provider API Keys
Your provider API keys are encrypted using AWS KMS with AES-256-GCM encryption. They are never stored in plain text and are only decrypted when starting an agent.
Step 3: Create Your First Agent¶
- Navigate to Agents in the sidebar
- Click Create Agent
- Fill in the agent details:
- Name: Give your agent a descriptive name (e.g., "Customer Support Bot")
- System Prompt: Define your agent's personality and behavior
- Provider: Select the provider you added
- Model: Choose the model (e.g.,
gpt-4o,claude-sonnet-4-20250514) - Click Create
Example System Prompt¶
You are a helpful customer support agent for Acme Corp. You help users with:
- Account questions
- Billing inquiries
- Technical support
Be friendly, professional, and concise. If you don't know the answer,
say so and offer to escalate to a human agent.
Step 4: Start and Test Your Agent¶
- Click the Start button on your agent card
- Wait for the status to change to Running (usually 5-10 seconds)
- Click on the agent to open the chat interface
- Send a test message: "Hello, what can you help me with?"
Step 5: Get Your API Key (Optional)¶
To send messages programmatically:
- Navigate to Settings > API Keys
- Click Generate API Key
- Copy and securely store your API key
API Key Security
Your API key is shown only once. Store it securely and never expose it in client-side code.
Test with cURL¶
curl -X POST https://agents.ag2trust.com/api/v1/agents/{agent_id}/messages \
-H "X-API-Key: cust_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"message": "Hello, what can you help me with?"}'
Response¶
{
"message_id": "msg_abc123",
"content": [
{
"type": "text",
"text": "Hello! I'm here to help you with account questions, billing inquiries, and technical support. How can I assist you today?"
}
],
"metadata": {
"tokens_used": 45,
"model": "gpt-4o",
"duration_ms": 1250
}
}
What's Next?¶
Now that you have a working agent, explore these topics:
- Create Agent Pools for load balancing
- Set up Webhooks for async responses
- Organize Agents into Teams
- Configure User Permissions
Troubleshooting¶
Agent won't start¶
- Check that your provider API key is valid
- Ensure your provider has available credits/quota
- Check the agent logs in the Dashboard
API returns 401 Unauthorized¶
- Verify your API key is correct
- Check the API key hasn't been revoked
- Ensure you're using the
X-API-Keyheader
Agent responds slowly¶
- Check your provider's rate limits
- Consider using a faster model (e.g.,
gpt-4o-mini) - Review your system prompt length
Need more help? Check our complete documentation or contact support.