Send Your First Trace
Let’s create a prompt and verify your MutagenT setup is working.
Prerequisites
- MutagenT SDK or CLI installed
- API key configured
Option 1: Using CLI
The fastest way to get started:
# Create a prompt
mutagent prompts create --name "Customer Support Assistant" \
--content "You are a helpful assistant for {{company_name}}. Question: {{question}}"
# Verify it was created
mutagent prompts list
Option 2: Using SDK
import { Mutagent } from '@mutagent/sdk';
const client = new Mutagent({
bearerAuth: process.env.MUTAGENT_API_KEY,
});
async function main() {
// Create a prompt
const prompt = await client.prompt.postApiPrompt({
name: 'Customer Support Assistant',
humanPrompt: `You are a helpful customer support assistant for {{company_name}}.
Your goal is to:
- Answer questions accurately
- Be friendly and professional
- Escalate complex issues appropriately
User question: {{user_question}}`,
inputSchema: {
type: 'object',
properties: {
company_name: { type: 'string' },
user_question: { type: 'string' },
},
},
});
console.log('Created prompt:', prompt.id);
console.log('Name:', prompt.name);
console.log('Version:', prompt.version);
}
main();
Verify in Dashboard
After running the code:
- Open your MutagenT dashboard
- Navigate to Prompts
- You should see your “Customer Support Assistant” prompt
If you see your prompt in the dashboard, congratulations! MutagenT is set up correctly.
Next Steps