-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
75 lines (62 loc) · 2.98 KB
/
Copy path.env.example
File metadata and controls
75 lines (62 loc) · 2.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# ============================================
# REQUIRED - Core Twilio Configuration
# ============================================
# Get these values from https://console.twilio.com/
TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWILIO_AUTH_TOKEN=your_auth_token_here_at_least_32_chars_long
# ============================================
# REQUIRED - AI & State Management
# ============================================
# OpenAI API key for AI-powered conversations
# Get from: https://platform.openai.com/api-keys
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Twilio Sync service SID for conversation state management
# Create via: twilio api:sync:v1:services:create --friendly-name="Call Generator Sync"
SYNC_SERVICE_SID=ISxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# TwiML Application SID for routing AI participants
# Create via Twilio Console → Voice → TwiML Apps
TWIML_APP_SID=APxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# REQUIRED: Skip webhook validation for TwiML Application calls
# TwiML Apps use app: prefix which doesn't support standard signature validation
# See: functions/utils/webhook-validator.js for security details
SKIP_WEBHOOK_VALIDATION=true
# ============================================
# REQUIRED - Phone Numbers (for testing)
# ============================================
# Your Twilio phone number for agent participant
AGENT_PHONE_NUMBER=+1234567890
# Your Twilio phone number for customer participant
CUSTOMER_PHONE_NUMBER=+1234567890
# ============================================
# REQUIRED - Deployment Configuration
# ============================================
# Your deployed Twilio Serverless domain (set automatically after first deploy)
# Will look like: your-unique-name-1234-dev.twil.io
SERVERLESS_DOMAIN=your-domain.twil.io
# ============================================
# OPTIONAL - Advanced Features
# ============================================
# --- Segment CDP Integration (Optional) ---
# Required only if using Segment for customer profile management
# Get from: https://app.segment.com/ → Connections → Sources → Node.js
# SEGMENT_WORKSPACE_ID=your-workspace-id
# SEGMENT_WRITE_KEY=your-write-key
# --- Voice Intelligence (Optional) ---
# Required only if using Twilio Voice Intelligence operators
# Create via: Twilio Console → Voice Intelligence
# VOICE_INTELLIGENCE_SID=GAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# --- AWS Event Streams (Optional) ---
# Required only if using AWS Kinesis for event streaming
# AWS_KINESIS_STREAM_NAME=your-kinesis-stream-name
# AWS_REGION=us-east-1
# ============================================
# CONFIGURATION - Rate Limiting
# ============================================
# IMPORTANT: Configure this based on your expected usage and budget
# Default: 1000 OpenAI calls per day (~$0.65/day at gpt-5-nano pricing)
# Each synthetic call makes ~10-20 OpenAI API calls depending on conversation length
MAX_DAILY_CALLS=1000
# ============================================
# ENVIRONMENT
# ============================================
NODE_ENV=development