Phone Agent banner
ruvnet ruvnet

Phone Agent

DevOps community

Description

This implementation creates a Cloudflare Worker that receives emails via Resend, parses calendar invites, and schedules a Bland.ai agent to join conference calls. The worker handles the entire process automatically, from receiving the email to scheduling the AI agent with specific instructions

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Phone Agent

A Cloudflare Pages application that provides AI phone agent capabilities, including scheduling calls, managing calendars, and handling email notifications.

Architecture

This application follows a simplified architecture using Cloudflare Pages Functions:

┌─────────┐     ┌───────────────────┐     ┌─────────────────┐
│ Resend  │────▶│ Cloudflare Pages  │────▶│ Bland.ai API    │
└─────────┘     └───────────────────┘     └─────────────────┘
    │                    │                        │
    │                    │                        │
    ▼                    ▼                        ▼
Email Events      Process Webhooks         Schedule Calls
                  Manage Calendar          Handle Phone Calls
                  Send Notifications

Features

  • AI Phone Agent: Schedule and manage automated phone calls using Bland.ai
  • Calendar Integration: Create and manage calendar events for scheduled calls
  • Email Notifications: Send confirmation, rescheduling, and cancellation emails
  • Webhook Processing: Handle webhooks from email and phone call services
  • Secure Storage: Store call and scheduling data securely
  • Error Handling: Comprehensive error handling and reporting

Project Structure

/
├── functions/                # Pages Functions (serverless API endpoints)
│   ├── api/                  # API endpoints
│   │   ├── webhook.js        # Webhook handler
│   │   ├── schedule.js       # Call scheduling handler
│   │   └── index.js          # API info endpoint
│   └── static.js             # Static file handler
├── public/                   # Static assets
├── src/
│   ├── config/               # Configuration
│   ├── services/             # Core services
│   │   ├── agent-scheduling-service.ts  # Call scheduling service
│   │   ├── bland-service.ts             # Bland.ai integration
│   │   ├── calendar-service.ts          # Calendar management
│   │   ├── email-service.ts             # Email notificat