Empire Telecom · EmpireUC developers
Start a call flow from any app, form or CRM, and let a flow call your app during a live call.
Call flows in EmpireUC are not only for phone calls. Any app, web form, CRM workflow, Zapier or Make can start a flow by sending its details to one web address, and the flow takes it from there: text the person, email the team, create or update a CRM record, call them back, ask AI to write a reply. In the other direction, a Run a webhook step lets a flow call your system in the middle of a live call and route the call on your answer.
| Item | Detail |
|---|---|
| Where | Phones > Call flow in the Empire Telecom customer portal |
| Start a flow from your app | POST https://empiretelecom.io/wp-json/empire-portal/v2/pbx/flow/{flow-key}/event (the exact address, with its key, is shown on the flow) |
| Body | JSON, form fields or query string. Every field becomes a value the flow can use, like {{name}} |
| Starts | App or web form (default), CRM record changed (?start=crmin) |
| Answer | { "ok": true, "run": 1234, "outcome": "..." } |
| Limit | 120 requests a minute per flow (then 429) |
| Security | The address contains a long secret key: treat it like a password. Anyone with it can start the flow |
| Flow calls your app | The Run a webhook step: POST, GET or PUT to your HTTPS address; your JSON answer becomes values the next steps can use |
| 1 | In Phones > Call flow, start the flow with App or web form (or CRM record changed). |
| 2 | Build what should happen next, for example Send a text > Send an email. |
| 3 | Press Go live. Under Apps and forms, copy the address. |
| 4 | Send it your data: |
| curl -s -X POST "https://empiretelecom.io/wp-json/empire-portal/v2/pbx/flow/{flow-key}/event" \ -H "Content-Type: application/json" \ -d '{"name":"Pat Smith","phone":"2125550100","email":"pat@example.com","interest":"Tour on Saturday"}' |
Answer:
| { "ok": true, "run": 18342, "outcome": "Sent a text to (212) 555-0100" } |
Inside the flow the values are {{name}}, {{phone}}, {{email}} and {{interest}}. Nested JSON is flattened with underscores: {"contact":{"first":"Pat"}} becomes {{contact_first}}. A field called phone, caller or from also fills {{caller}}, so Send a text and Call back steps know who to reach.
method="post". Field names become the values.?start=crmin to the address so the flow's CRM record changed start runs.| Status | Meaning |
|---|---|
200 with "ok": true | The flow ran. run is its ID in the flow's history |
200 with "ok": false | The flow has no start of that kind. outcome says which |
| 404 | The flow is not live, or the address is wrong |
| 429 | More than 120 requests a minute to this flow. Slow down and retry |
Add a Run a webhook step anywhere in a flow. During a live call it waits up to 5 seconds for your answer (15 seconds outside calls), then follows Worked, Failed or Timed out.
Unless you write your own body, your address receives:
| { "event": "call_flow", "flow": "Main line", "caller": "12125550100", "called": "17325550100", "answer": "2", "key": "2", "time": "2026-10-29T18:35:02+00:00", "details": { "caller": "12125550100", "called": "17325550100", "caller_pretty": "(212) 555-0100", "flow": "Main line", "date": "Thursday, October 29, 2026", "time": "2:35 PM", "answer": "2", "key": "2" } } |
{{caller}}.app_. {"vip":"yes","account":{"tier":"gold"}} gives {{app_vip}} and {{app_account_tier}}, ready for a Check something step to route VIPs to a person.Authorization and Bearer ...); the step sends it with every request.Need a hand? Call Empire Telecom support at (732) 363-9898, email support@empiretelecomnj.com, or open a ticket in the customer portal.