Skip to content

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

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
TSworker.ts
TSenv.d.ts
src / worker.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

Terminal window
npm install @cf-agents/google @cf-agents/discord
# or
pnpm add @cf-agents/google @cf-agents/discord

PackageDescription
@cf-agents/googleGmail, Calendar, and Sheets integration with OAuth 2.0
@cf-agents/discordSend messages and read channel history
@cf-agents/slackPost messages and read conversations
@cf-agents/telegramSend messages to Telegram chats