AI
Pass

AI Email Writer — Agent Skill

AI Email Writer — Agent Skill

Use the AI Email Writer directly from your AI agent via the AI Pass API. No browser needed — just HTTP requests.

Quick Start

  1. Create an account at aipass.one ($1 free credit on signup)
  2. Go to Developer Dashboard and create an API key
  3. Set it as $AIPASS_API_KEY in your environment
  4. Use the skill below

The Skill

The complete, ready-to-use skill file is included in this post's skillContent field. It covers:

  • curl examples for quick testing
  • Python integration code
  • Model selection and parameters

Example

curl -s -X POST https://aipass.one/apikey/v1/chat/completions \
  -H "Authorization: Bearer $AIPASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5-mini",
    "messages": [
      {"role": "system", "content": "You are a professional email writer. Given the context, recipient, and purpose, write a clear, effective email. Match the appropriate tone (formal, fr"},
      {"role": "user", "content": "Write a follow-up email to a potential client after a demo call. They seemed interested but haven't responded in 3 days."}
    ]
  }'

Related

Skill File

---
name: email-writer
description: AI Email Writer — write professional emails using AI Pass text completion API.
version: 1.0.0
---

# AI Email Writer Skill

Write professional emails using AI text completion.

## Requirements
- AI Pass API key (create at https://aipass.one/panel/developer.html)
- Set as environment variable: `$AIPASS_API_KEY`

## Usage

### Generate (curl)
```bash
curl -s -X POST https://aipass.one/apikey/v1/chat/completions \
  -H "Authorization: Bearer $AIPASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5-mini",
    "messages": [
      {"role": "system", "content": "You are a professional email writer. Given the context, recipient, and purpose, write a clear, effective email. Match the appropriate tone (formal, friendly, persuasive), keep it concise, and include a clear call to action."},
      {"role": "user", "content": "Write a follow-up email to a potential client after a demo call. They seemed interested but haven't responded in 3 days."}
    ]
  }'
```

Response: `r.choices[0].message.content` — generated text.

### Python
```python
import requests, os

def generate(user_input):
    r = requests.post(
        "https://aipass.one/apikey/v1/chat/completions",
        headers={
            "Authorization": f"Bearer {os.environ['AIPASS_API_KEY']}",
            "Content-Type": "application/json"
        },
        json={
            "model": "gpt-5-mini",
            "messages": [
                {"role": "system", "content": "You are a professional email writer. Given the context, recipient, and purpose, write a clear, effective email. Match the appropriate tone (formal, friendly, persuasive), keep it concise, and include a clear call to action."},
                {"role": "user", "content": user_input}
            ]
        }
    )
    return r.json()["choices"][0]["message"]["content"]

print(generate("Write a follow-up email to a potential client after a demo call. They seemed interested but haven't responded in 3 days."))
```

## Notes
- Model: `gpt-5-mini` (fast, cost-effective text generation)
- Each generation costs fractions of a cent
- $1 free credit on signup at https://aipass.one
- Create API key at https://aipass.one/panel/developer.html

## Related
- App: https://aipass.one/apps/email-writer
- User guide: https://aipass.one/blog/ai-email-writer-guide
- Dev tutorial: https://aipass.one/blog/build-email-writer-tutorial
Download Skill File