Skip to main content

Welcome to Truffle AI

Truffle AI provides a simple yet powerful TypeScript SDK for building AI-powered applications. Our platform makes it easy to create, deploy, and interact with AI agents through a clean and intuitive API.

Why Choose Truffle AI?

Simple Integration

Get started in minutes with our TypeScript SDK

Flexible Agents

Create and customize AI agents for your specific needs

Chat & Task Support

Support for both one-off tasks and persistent chat sessions

Developer First

Clean TypeScript API with excellent developer experience

Key Features

🤖 AI Agents

Create and deploy AI agents for various use cases:
  • Task automation
  • Conversational interfaces
  • Custom AI assistants

💻 Easy Integration

import { TruffleAI } from 'truffle-ai';

// Initialize the client
const truffle = new TruffleAI('your-api-key');

// Deploy an agent
const agent = await truffle.deployAgent({
  name: 'My Assistant',
  instruction: 'You are a helpful AI assistant.',
  model: 'gpt-4o-mini'
});

// Run a task
const response = await agent.run('Hello!');

// Or start a chat session
const chat = agent.chat();
const chatResponse = await chat.send('Hello!');

🔧 Core Capabilities

Run one-off tasks with your agents using the run() method
Create interactive chat sessions with persistent context
Create, update, and manage your AI agents

Getting Started

Get started with Truffle AI in minutes:
1

Install the SDK

npm install truffle-ai
2

Initialize

import { TruffleAI } from 'truffle-ai';
const truffle = new TruffleAI('your-api-key');
3

Create an Agent

const agent = await truffle.deployAgent({
  name: 'My Assistant',
  instruction: 'You are a helpful AI assistant.',
  model: 'gpt-4o-mini'
});
4

Start Using

// Run a task
const result = await agent.run('What can you help me with?');

// Or start chatting
const chat = agent.chat();
const response = await chat.send('Hello!');

Example Use Cases

Here are some common ways to use Truffle AI:

Virtual Assistant

Create custom AI assistants for various tasks

Chat Interface

Build conversational interfaces with context memory

Task Automation

Automate repetitive tasks with AI agents

Q&A System

Build question-answering systems with domain expertise

Next Steps

Ready to start building? Check out these resources:
⌘I