Outreach Agent
Build an AI agent that writes personalized emails with OpenAI and sends them through Resend — all funded by a single Tokium wallet. No email API keys, no domain hassles.
The Problem
Sending personalized emails at scale requires managing email API keys, domain authentication, SPF/DKIM records, and rate limits.
Combining an LLM for personalization with an email API for delivery means two separate subscriptions and two separate integrations.
Your agent can't sign up for Resend or OpenAI on its own — it needs a human to set up billing for each service.
The Solution
Your agent uses OpenAI to craft personalized messages and Resend to deliver them — both through Tokium. One wallet funds both services. No API key juggling, no separate billing. Your agent composes and sends autonomously.
Why through Tokium?
AI agents need data — but the way they get it matters. Here's why routing through Tokium beats the alternatives.
Structured data, not HTML soup
Web scraping gives agents raw HTML to parse — brittle and unreliable. APIs through Tokium return clean, structured JSON your agent can act on immediately.
Pay per request, not per month
Most API providers charge monthly subscriptions — expensive when experimenting, wasteful when usage varies. Tokium charges per request. Use what you need.
No keys to manage
Direct API use means signing up with each provider, generating keys, storing secrets, rotating them. With Tokium, your agent authenticates once — we handle the rest.
Built for agents, not humans
Agents can't fill out signup forms or enter credit cards. Tokium is agent-native — create a wallet, fund it, and your agent calls APIs autonomously with spending limits you control.
How It Works
Create Agent
Spin up an agent with a Tokium wallet that can access both OpenAI and Resend.
Fund Wallet
Add funds once. The wallet covers both LLM calls and email sends automatically.
Agent Writes & Sends
Your agent generates personalized emails with OpenAI and sends them via Resend. Pay per call.
Code Example
import Tokium from '@tokium-labs/sdk';
const tokium = new Tokium({ apiKey: process.env.Tokium_API_KEY });
// Step 1: Generate personalized email with OpenAI
const completion = await tokium.proxy.post(
'openai',
'/v1/chat/completions',
{
body: {
model: 'gpt-4o',
messages: [
{ role: 'system', content: 'Write a short, personalized cold email.' },
{ role: 'user', content: `Recipient: Sarah Chen, CTO at Acme Corp.
Topic: AI infrastructure cost savings.` }
]
}
}
);
const emailBody = completion.data.choices[0].message.content;
// Step 2: Send via Resend
await tokium.proxy.post('resend', '/emails', {
body: {
from: '[email protected]',
to: '[email protected]',
subject: 'Quick thought on your AI infra',
html: emailBody
}
});Start building your outreach agent
Create your free account and start building in minutes.