Getting Started

Your First Agent

# Creating Your First Agent

Let's create and deploy your first AI agent in just 5 minutes.

Step 1: Find an Agent

Browse the marketplace and choose an agent that fits your needs.

Step 2: Create Integration

javascript
const { Marketplace } = require('@aiagent/marketplace');
const client = new Marketplace({ apiKey: process.env.API_KEY });

const agent = await client.agents.get('agent-id'); console.log(`Found: ${agent.name}`); ```

Step 3: Invoke the Agent

javascript
const response = await client.agents.invoke('agent-id', {
  input: 'Hello, how can I help?',
  parameters: {
    language: 'en',
    tone: 'friendly'
  }
});

console.log(response.output); ```

Step 4: Handle Responses

javascript
if (response.success) {
  console.log('Agent response:', response.output);
} else {
  console.error('Agent error:', response.error);
}

What's Next?

  • Explore more [Core Concepts](./agents)
  • Learn about [Integration](../guides/integration)
  • Check out [Best Practices](../guides/best-practices)