Quickstart
Build your first AI agent in under 5 minutes. This step-by-step guide will get you up and running with Swfte's powerful AI platform.
5-Minute Setup
Get your first AI agent running in under 5 minutes
Simple API
Intuitive SDK designed for developers
Highly Configurable
Customize every aspect of your AI agents
Step-by-Step Guide
Step 1: Install the SDK
30 seconds
Get started by installing the Swfte SDK in your project
bash
npm install @swfte/sdk
# or
yarn add @swfte/sdk
Step 2: Get Your API Key
1 minute
Sign up and get your API key from the Swfte dashboard
env
// Add to your .env file
SWFTE_API_KEY=your_api_key_here
SWFTE_ENVIRONMENT=production
Step 3: Initialize the Client
1 minute
Set up the Swfte client with your configuration
javascript
import { SwfteClient } from '@swfte/sdk';
const client = new SwfteClient({
apiKey: process.env.SWFTE_API_KEY,
environment: 'production'
});
Step 4: Create Your First Agent
2 minutes
Build a simple conversational AI agent
javascript
const agent = await client.agents.create({
name: 'My First Agent',
type: 'conversational',
description: 'A helpful customer service assistant',
config: {
model: 'gpt-4-turbo',
temperature: 0.7,
maxTokens: 1000
}
});
console.log('Agent created:', agent.id);
Step 5: Start Chatting
1 minute
Interact with your agent in real-time
javascript
const response = await client.agents.chat(agent.id, {
message: 'Hello! How can you help me today?',
userId: 'user_123'
});
console.log('Agent response:', response.message);
Example Use Cases
Customer Support Bot
Handle customer inquiries automatically
const supportBot = await client.agents.create({
name: 'Support Assistant',
type: 'conversational',
config: {
systemPrompt: 'You are a helpful customer support agent...',
knowledgeBase: 'kb_customer_docs'
}
});
Data Processing Agent
Process and analyze data automatically
const dataAgent = await client.agents.create({
name: 'Data Processor',
type: 'workflow',
config: {
functions: ['analyze_data', 'generate_report'],
triggers: ['data_upload']
}
});
Avatar Video Generator
Create personalized video content
const avatar = await client.avatars.create({
name: 'Sales Rep',
voice: 'en-US-neural',
appearance: 'professional'
});
const video = await client.videos.generate({
avatarId: avatar.id,
script: 'Welcome to our platform!'
});
Ready to Build More?
Now that you've built your first agent, explore our advanced features like avatar creation, workflow automation, and enterprise integrations.