-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
39 lines (33 loc) · 1.71 KB
/
Copy path.env.example
File metadata and controls
39 lines (33 loc) · 1.71 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
# Copy to `.env` and fill in. `.env` is gitignored and never committed.
# Node reads this file natively via --env-file, so there is no dotenv
# dependency. Railway injects its own variables and ignores the file.
#
# cp .env.example .env
# createdb isv_cap_local
# npm run migrate && npm run seed && npm run dev
DATABASE_URL=postgres://localhost/isv_cap_local
PORT=3002
# Vapi private API key for the org that owns the phone numbers below. Used to
# resolve each number's dialable form at seed time, and to place outbound calls.
VAPI_API_KEY=
VAPI_BASE_URL=https://api.vapi.ai
# Must match `server.secret` on the Vapi phone numbers or the org, or every
# inbound webhook is rejected before it reaches the gate.
WEBHOOK_SECRET=
# Your tenants, one line of JSON. Every id is a Vapi resource id. A tenant's
# numbers must carry no assistant, squad, or workflow of their own, or Vapi
# never sends `assistant-request` and the call bypasses this gateway entirely.
# assistantIds are only needed for outbound dialing.
TENANTS_JSON=[{"id":"client-a","displayName":"Client A","cap":5,"phoneNumberIds":["your-vapi-phone-number-id"],"assistantIds":["your-vapi-assistant-id"],"voiceId":"Elliot"}]
# Optional. Polls Vapi for calls whose terminal webhook was missed. The gate
# does not depend on it.
# ENABLE_RECONCILIATION=true
# Optional, demo only. Mounts the presenter controls: fill a tenant's lines
# with simulated calls, end them, and change a cap from the dashboard. Never
# set this on a deployment that dials real numbers.
# DEMO_MODE=true
#
# Cycle pacing, in milliseconds. The hold is the long half on purpose: sitting
# at the cap is what you narrate, the gap is what you place a real call into.
# DEMO_HOLD_MS=25000
# DEMO_FREE_MS=12000