cf-agents
The Toolkit for Building Agents.
Drop-in integrations for Google, Discord, Slack, Telegram and more. Built for Cloudflare Workers.
GmailSending Email
Drafting response to John...
Processing...
CalendarScheduling Meeting
Booked standup for 10am
Processing...
DiscordDiscord Message
Posted update to #general
Processing...
SlackSlack Alert
Notified @team about deploy
Processing...
The @cf-agents Ecosystem
Section titled “The @cf-agents Ecosystem”The @cf-agents Ecosystem
Integration shouldn't be a side-quest.
Your agent has work to do. We’ve automated the boilerplate so you can skip the plumbing and move straight to the logic. Turn integration hell into a minor configuration detail.
Cloudflare-nativeTyped toolingAgent-ready
terminal · pnpm
worker.ts
env.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { AgentRuntime } from "@cf-agents/core";
import { gmailTool } from "@cf-agents/google";
export default {
async fetch(request: Request, env: Env) {
const runtime = new AgentRuntime({
tools: [gmailTool({ token: env.GOOGLE_TOKEN })]
});
const result = await runtime.run({
messages: [{ role: 'user', content: 'What is on my calendar?' }]
});
return Response.json(result.responses);
},
};
main*UTF-8TypeScript JSX
InstallShip
Quick Install
Section titled “Quick Install”npm install @cf-agents/google @cf-agents/discord# orpnpm add @cf-agents/google @cf-agents/discordAvailable Packages
Section titled “Available Packages”| Package | Description |
|---|---|
@cf-agents/google | Gmail, Calendar, and Sheets integration with OAuth 2.0 |
@cf-agents/discord | Send messages and read channel history |
@cf-agents/slack | Post messages and read conversations |
@cf-agents/telegram | Send messages to Telegram chats |