@tpmjs/tools-resend
Create a new broadcast email to send to a segment.
Rate limit exceeded: Too many requests. You can only make 2 requests per second. See rate limit response headers for more information. Or contact support to increase rate limit.
Last checked: 2/27/2026, 4:19:44 AM
Test @tpmjs/tools-resend (createBroadcast) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-resendpnpm add @tpmjs/tools-resendyarn add @tpmjs/tools-resendbun add @tpmjs/tools-resenddeno add npm:@tpmjs/tools-resendimport { createBroadcast } from '@tpmjs/tools-resend';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { createBroadcast } from '@tpmjs/tools-resend';
const result = await generateText({
model: openai('gpt-4o'),
tools: { createBroadcast },
prompt: 'Your prompt here...',
});
console.log(result.text);(from: string, subject: string, segment_id: string, html?: string, name?: string, text?: string, reply_to?: { }, topic_id?: string) => Promise<unknown>Available configuration options
segment_idstringSegment ID to send the broadcast to.
fromstringSender address. Supports "Name <email>" format.
subjectstringBroadcast email subject line.
reply_toobjectReply-to address(es).
htmlstringHTML content. Supports Contact Property templating.
textstringPlain text content.
namestringFriendly name for internal reference.
topic_idstringTopic ID for subscription management.
Schema extracted: 2/27/2026, 4:19:43 AM
ERROR: No README data found!
Downloads/month
110
GitHub Stars
0
Quality Score