After a flow call
A flow carries its own summary, extraction, and webhook configuration — and it replaces every member agent's for the calls it runs.
A flow owns what happens when its calls end. Summary, structured extraction, and webhook delivery are configured on the flow itself, and for a flow call they replace whatever the member agents configure.
curl -X PATCH https://api.kejue.co/v1/flows/FLOW_ID \
-H "Authorization: Bearer kejue_<prefix>_<secret>" \
-H "Content-Type: application/json" \
-H 'If-Match: "FLOW_ETAG"' \
--data '{
"summary_enabled": true,
"summary_prompt": "Summarize the caller's issue, which team handled it, and what we promised.",
"extraction_object_ids": ["EXTRACTION_OBJECT_ID"],
"webhook_config_ids": ["WEBHOOK_CONFIG_ID"]
}'Why the flow owns it
One call produces one summary, one set of extraction results, and one
call.completed delivery. If each agent kept its own after-call configuration
inside a flow, which one you got would depend on which agent happened to be
holding the call when it ended — the same conversation would be summarized
differently depending on where it finished. So the flow decides, once, for
every call it runs.
| The call ran… | After-call configuration used |
|---|---|
| Through a flow | The flow's own summary_*, extraction_object_ids, and webhook_config_ids. |
| Anywhere else | The agent version's configuration, unchanged. |
There is no merging. A flow with summary_enabled: false produces no summary,
even when every agent in it summarizes its own direct calls; a flow with an
empty extraction_object_ids extracts nothing. Member agents keep their own
configuration for their own direct calls — nothing is written back to them.
Fields
| Field | Meaning |
|---|---|
summary_enabled | Whether we summarize the finished call. Defaults to off. |
summary_prompt | Your summarization instructions. null or blank restores the system prompt. |
extraction_object_ids | Ordered extraction objects to run. [] clears the list. |
webhook_config_ids | Ordered webhook configurations to deliver to. [] clears the list. |
Each ID list holds unique, active, same-workspace UUIDs; missing, archived, or cross-workspace references fail with the exact indexed field path. Because the lists live on the flow, one edit changes the reporting for every agent in the graph at once.
What arrives
Nothing about the payloads changes because a flow produced them. The summary
and extraction results land on the call record
(GET /v1/calls/{id} — Calls) and in the call.completed
delivery's summary and extractions
(Webhook events); extracted values filter call lists the
same way; analysis boards read them through the same
extraction query source.
The one thing worth expecting is scope: the transcript you summarize spans the
whole conversation, including every agent that spoke, and the
agent_handoff rows between
them. A summary prompt written for a single-agent call often reads better with
one extra sentence asking which part of the business handled the caller.
A call that leaves the flow still belongs to it. If an agent transfers the caller to a human or books a callback, the conversation that happened is still a flow call, and the flow's after-call configuration is what runs on it.
An agent you drop into a graph keeps its own after-call configuration for its
own direct calls, and stops using it for flow calls. If you relied on that
agent's summary prompt or extraction objects for reporting, copy them onto the
flow — otherwise the same conversations arrive with the flow's treatment, or
with none at all if you left summary_enabled off. Nothing is lost: the
agent's configuration is untouched, and removing it from the graph restores the
old behavior without an edit.
Editing takes effect on the next call
Like the rest of a flow, after-call configuration is live: there is no draft to
promote and no version to deploy. A save applies to the next call that starts;
calls already running keep the configuration they began with, and finished
calls keep the results they already produced. Reads return a strong ETag —
send it back in If-Match so a concurrent
edit cannot be overwritten silently.
If a summary or an extraction fails, it fails the way it does for any call: a stable status and a safe error token on the call record, never a raw provider message, and the rest of the after-call work still runs.
Needs flows:update to edit, flows:read to read; attaching an extraction
object or a webhook configuration also needs read access to it.
See also
Flows · Extraction objects · Webhooks · Calls