Make Voice Call

mocean.make_call
ActionVoice & SMSconnection required

Calls the Mocean API with the connection's credentials.

Place an outbound call and run a Mocean Command script on it once the callee answers.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Mocean
Secret shape
{"api_token": "…"} — a Mocean API token, or {"api_key": "…", "api_secret": "…"}
Config it needs
base_url, sender_id, brand
Resolved by
config.connection_id, else node.connection_id

Configuration

4 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
to
Recipient number in international format, country code first and no plus sign; separate several numbers with commas.
stringYes——60123456789
command
The Mocean Command script, an ordered array of actions such as say, play, collect, dial, record and sleep.
arrayYes—≥ 1 characters; array of object[{"action":"say","language":"en-GB","text":"Hello from Acme."}]
sender_id
Caller id the callee sees; overrides the default on the connection.
stringNo——60123456789
event_url
URL Mocean should notify as the call is answered and hung up.
stringNo—url format—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "command": [
    {
      "action": "say",
      "language": "en-GB",
      "text": "Hello from Acme."
    }
  ],
  "sender_id": "60123456789",
  "to": "60123456789"
}

Output

One shape.

result

FieldTypeExample
calls
One entry per callee, each with its status, session_uuid and call_uuid.
array—
count
How many call entries Mocean returned.
number—
call_uuids
The call ids, in the same order; feed one to mocean.hangup_call.
array—
session_uuid
The session all these calls belong to.
string—
{
  "call_uuids": [],
  "calls": [],
  "count": 0,
  "session_uuid": ""
}

See Make Voice Call run in a workflow.

In a technical demo we add the Mocean connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.