Home/Tools/@tpmjs/tools-resend

createBroadcast

@tpmjs/tools-resend

Create a new broadcast email to send to a segment.

Official
ops
v0.1.0
MIT
⚠️

This tool is currently broken

Execution Failed
Runtime error with test parameters
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

Interactive Playground

Test @tpmjs/tools-resend (createBroadcast) with AI-powered execution

0/2000 characters

Installation & Usage

Install this tool and use it with the AI SDK

1. Install the package

npm install @tpmjs/tools-resend
pnpm add @tpmjs/tools-resend
yarn add @tpmjs/tools-resend
bun add @tpmjs/tools-resend
deno add npm:@tpmjs/tools-resend

2. Import the tool

import { createBroadcast } from '@tpmjs/tools-resend';

3. Use with AI SDK

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);

Signature

(from: string, subject: string, segment_id: string, html?: string, name?: string, text?: string, reply_to?: {  }, topic_id?: string) => Promise<unknown>

Tags

agent
broadcast
create
email
new
ops
resend
segment
send
tpmjs
transactional

Parameters

Available configuration options

Auto-extracted
segment_id
Required
Type: string

Segment ID to send the broadcast to.

from
Required
Type: string

Sender address. Supports "Name <email>" format.

subject
Required
Type: string

Broadcast email subject line.

reply_to
Optional
Type: object

Reply-to address(es).

html
Optional
Type: string

HTML content. Supports Contact Property templating.

text
Optional
Type: string

Plain text content.

name
Optional
Type: string

Friendly name for internal reference.

topic_id
Optional
Type: string

Topic ID for subscription management.

Schema extracted: 2/27/2026, 4:19:43 AM

README

ERROR: No README data found!

Statistics

Downloads/month

110

GitHub Stars

0

Quality Score

78%

Bundle Size

NPM Keywords

tpmjs
resend
email
transactional
agent

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai
createBroadcast | TPMJS | TPMJS