Platform
Calling workflows
Describe a calling task in your own words, such as "call our farmers every morning in Marathi, ask how many bags are ready, and call the backups if we are short". InferexAI turns it into a plan you can read and correct, you add the contacts, test the conversation, and launch it deliberately. Nothing is called until you launch.
The five steps
StepWhat you do
1. DescribeSay who to call, what to ask, the language, the timing and what should happen next, in plain words.
2. Review planA readable plan: the agent's instructions and greeting, the language, what to collect (with units, such as bags or rupees), the outcomes, the schedule with its time zone, and any follow-up rule. Anything unclear becomes a question for you to answer instead of a guess. Edit any part, or regenerate.
3. Add contactsImport a CSV or type them in, map columns to fields, and mark each contact as primary or backup. Invalid numbers and duplicates are shown with the reason before anything is saved.
4. TestPrepare the workflow (this creates its agent and calls, but runs nothing), then try the exact agent version in a written test conversation or a test call to your own phone.
5. LaunchCheck the calling channel, calling hours and spending caps, then launch once or on the schedule. You can pause and resume at any time.
Primary and backup contacts
A follow-up rule says when backups are called, for example "if the farmers have fewer than 200 bags ready in total, call the backup farmers". After the primary calls of a run, the total of the collected field is compared with the target:
- Each contact is counted once. An answer the agent could not get is kept apart from a real zero.
- Backups start at most once per run, up to the plan's limit on backup calls.
- As soon as the target is met, backup calls not yet placed are cancelled; calls in progress finish.
- Every decision is recorded with its reason on the workflow's page.
How calls are placed
- Phone: through your own SIP trunk when one is set to place calls (see Phone numbers), otherwise through your own telephony via the
routine.call.requested webhook. - WhatsApp call: from your WhatsApp Business number, to people who have given permission (see WhatsApp calls).
- Unanswered phone calls and voicemail are counted as not answered, so retries apply. The plan's channel shows whether it is ready for your account before you launch.
- Workflows run on call lists, so calling hours (09:00 to 21:00 IST by default), retries, budgets and the do-not-call list all apply. A time outside your calling hours is flagged in the plan.
After launch
The workflow page shows each run: calls placed, answered and not answered, the collected quantities against the target, backup activity with its reasons, exceptions to look at, and the cost. Each call opens the full transcript and recording.
API
EndpointWhat it does
POST /v1/workflows{name, description}: a new workflow from your description.
POST /v1/workflows/{id}/planGenerate (or regenerate) the plan. One charged model call.
PATCH /v1/workflows/{id}Save the description or an edited plan, or confirm suggested values ({"confirm": ["schedule.at"]}).
PUT /v1/workflows/{id}/contactsrows to add or replace contacts; dry_run: true checks them without saving.
POST /v1/workflows/{id}/prepareCreate the agent and calls without running anything.
POST /v1/workflows/{id}/testsLink a written test conversation with the prepared agent, so its result shows on the workflow.
POST /v1/workflows/{id}/test-callOne charged test call to your own number (confirm_charge: true). Never calls your contacts.
POST /v1/workflows/{id}/launchStart it once, or on its schedule. Every requirement is checked again; send confirm: true.
POST /v1/workflows/{id}/pause · /resumeStop or restart scheduled runs.
GET /v1/workflows/{id}/overviewRuns, results against the target and backup activity.
GET /v1/workflows/channelsThe ways a workflow can call people, and whether each is ready for your account.
curl -X POST https://api.inferexai.in/v1/workflows \
-H "Authorization: Bearer sk-live-your-key-here" \
-H "Content-Type: application/json" \
-d '{"name": "Morning stock check",
"description": "Every weekday at 9:30 call our farmers in Marathi, ask how many bags are ready for pickup. If we have fewer than 200 bags, call the backup farmers."}'
curl -X POST https://api.inferexai.in/v1/workflows/wf_1a2b3c/plan \
-H "Authorization: Bearer sk-live-your-key-here"
curl -X POST https://api.inferexai.in/v1/workflows/wf_1a2b3c/launch \
-H "Authorization: Bearer sk-live-your-key-here" \
-H "Content-Type: application/json" \
-d '{"confirm": true}'
Calling workflows are switched on per account and need Routines. Contact support to enable them. See also
Call lists and
Routines.