Get Started in Minutes
Install via NPM
bash
npm install @tangible/aiThe fastest way to get started. Includes TypeScript definitions and auto-complete support.
Configure Environment
env
TANGIBLE_API_KEY=your_api_key_here
TANGIBLE_ENV=productionAdd your API key to .env file.
Your First AI Agent
Create a conversational AI agent in under 2 minutes:
typescript
import { TangibleAI } from '@tangible/ai';
// Initialize the client
const client = new TangibleAI({
apiKey: process.env.TANGIBLE_API_KEY,
environment: 'production'
});
// Create your first agent
const agent = await client.agents.create({
name: 'Customer Support Bot',
model: 'gpt-4',
systemPrompt: 'You are a helpful customer support agent.',
tools: ['knowledge_base', 'ticketing_system']
});
// Start a conversation
const response = await agent.chat({
message: 'How do I reset my password?'
});
console.log(response.content);