Skip to main content
POST
Talk to a workflow
Send one message of up to 2,000 characters, such as the last run failed, fix it or also send the rows to Slack. The doctor reads the workflow’s runs and steps, changes the steps, and runs it again to check. It is the same doctor as the Brain chat in the app’s builder. The call answers at once. The doctor keeps working after it, so the answer has:
  • messages and working: the chat, as Read a workflow’s chat shows it.
  • answer: what happened to your message, in plain words.
  • status_url: where its reply is posted.
  • next_step: when to read it.
A message sent while the doctor is working is queued for its next step. A message that is only stop stops it, as Stop a workflow’s doctor does. Every change it makes is kept as a version, so you can restore the workflow as it was. Its work is charged like any use of the builder. Only the owner or an editor in the workflow’s workspace. Needs workflows:write and workflows:invoke. MCP tool: talk_to_workflow, with slug and message.

Authorizations

Authorization
string
header
required

API key with the vd_sk_ prefix, as Authorization: Bearer vd_sk_.... Create keys in Settings → API Keys.

Headers

Idempotency-Key
string

Any unique string (such as your order id). Resending the same request with the same key within 24 hours returns the first answer (with Idempotent-Replayed: true) and does nothing twice; the same key with a different request is a 422 idempotency_key_reused.

Required string length: 1 - 255

Path Parameters

slug
string
required

Body

application/json
message
string
required

What you want, in plain words: 'this is broken', 'add the price', 'why did the last run fail?'

Required string length: 1 - 2000

Response

Successful Response

workflow_slug
string
required
answer
string
required

What happened to your message, in plain words.

messages
WorkflowChatMessage · object[]
working
boolean
default:false

The doctor is working on a message now; its answer is posted here.

status_url
string | null

Where its answer is posted (GET /v1/workflows/{slug}/doctor).

next_step
string | null

While it works: the call that reads its answer and when.