# Resend
> Send and manage emails with Resend. Give your AI agents the ability to send transactional emails, manage contacts, and work with email templates.

- **Package:** resend-ai-sdk
- **Author:** Flash Brew Digital
- **Tags:** email, resend, transactional, contacts, templates

## Environment Variables
- `RESEND_API_KEY`
- `RESEND_EMAIL_DOMAIN`

## Included Tools
- **sendEmail:** Send an email to one or more recipients
- **sendBatchEmails:** Send multiple emails at once (up to 100)
- **getEmail:** Retrieve the status and metadata of a sent email
- **listEmails:** List recently sent emails
- **createContact:** Add a new contact to your Resend account
- **listContacts:** List contacts in your account
- **removeContact:** Remove a contact permanently
- **listTemplates:** List available email templates
- **getTemplate:** Retrieve a template's content and variables

## Installation
```bash
npm install resend-ai-sdk
```

## Usage
```typescript
import { generateText, stepCountIs } from 'ai';
import { sendEmail, listTemplates, getTemplate } from 'resend-ai-sdk';

const { text } = await generateText({
  model: 'openai/gpt-4o',
  prompt: 'Find my welcome template and send it to user@example.com from hello@acme.com',
  tools: {
    sendEmail,
    listTemplates,
    getTemplate,
  },
  stopWhen: stepCountIs(5),
});

console.log(text);
```

## Links
- [Documentation](https://github.com/Flash-Brew-Digital/resend-ai-sdk)
- [npm](https://www.npmjs.com/package/resend-ai-sdk)
- [GitHub](https://github.com/Flash-Brew-Digital/resend-ai-sdk)

---
[Full Library Index](/library.md)