Quick Start
Get up and running with Actly in under 5 minutes.
npm install @actly/sdk
import { Actly } from '@actly/sdk';
const actly = new Actly({
apiKey: 'your-api-key'
});
// Create an action
const result = await actly.execute({
intent: 'Send email to team',
context: { recipients: ['team@example.com'] }
});
console.log(result);
Installation
Install Actly using your preferred package manager:
# npm
npm install @actly/sdk
# yarn
yarn add @actly/sdk
# pnpm
pnpm add @actly/sdk
Authentication
Authenticate your requests using API keys. Get your API key from the dashboard.
const actly = new Actly({
apiKey: process.env.ACTLY_API_KEY
});
Agents
Agents are the core of Actly. They interpret intent and execute actions.
const agent = await actly.createAgent({
name: 'Customer Support Agent',
capabilities: ['email', 'slack', 'database'],
model: 'gpt-4'
});