convert_session_to_workflow
Convert a chat session into a saved workflow. Reads recent successful capability calls for the conversation, emits them as call_capability action steps, and saves the workflow with disabled: true so the user reviews + enables in the workflow editor. Do not call this as the first response to "make this a workflow": first review the chat transcript/tool sequence, ask any missing questions, and confirm the reusable workflow definition (trigger/context, runtime inputs, reusable read/search steps, generation contract, writes, and review state). By default only mutating calls (writes) become workflow steps — discovery reads (list_, search_, get_*) are filtered as exploration scaffolding (set mutates_only: false to include them). Detects runs of N consecutive same-capability calls (a strong "for-each" signal) and surfaces them as loop_candidates so the user can consolidate by hand; native for_each step kind ships in v3. Use parameterise=["key1", "key2"] to lift specific argument keys into runtime inputs (replacing the captured value with {{input.key}}). Output flags truncated/reads_excluded/loop_candidates so the caller knows what got dropped or batched. Use this only when the confirmed plan is faithfully represented by the captured trace; otherwise create or edit the workflow from the plan. If compression fails and the saved literal trace would omit required read/generation steps, tell the user and ask whether they accept a literal disabled draft before treating it as the reusable workflow.
Request
- Base URL: https://app.podmule.com/api/v1
- URL: https://app.podmule.com/api/v1/convert_session_to_workflow
- Auth: HTTP bearer
Request body
Response
Capability output wrapped in { data }.
Changes
No recorded changes to this operation across all 1 revision of this API.