Create The Draft
- Open Dashboard > Workflows.
- Choose New workflow.
- Name it Refund triage.
- Open the workflow in Studio.
Start From A Channel Message
Open the node palette and add a Channel message trigger. In the inspector:- Choose the support channel registration or binding.
- Give the step a clear name such as New message in support.
- Review the Docs tab to see the fields the trigger makes available.
Classify The Request
Add an Agent task after the trigger and name it Classify request.- Choose a support or operations agent.
-
Write an instruction such as:
- Insert the message text from the upstream-values menu. Studio stores the selection as a variable reference and shows it as a pill.
-
In Returns, add these structured fields:
Branch On The Result
Add a Condition after Classify request.- Insert Classify request > intent into Value.
- Set Comparison to equals and Compare with to
refund. - Connect the true port to the approval step.
- Connect the false port to the non-refund path you want, such as another agent task or a stop step.
{{ classify_request.intent }} by hand. The pill keeps the source step and field visible.
Ask For Approval
Add a Human approval on the refund branch.- Choose the person or review destination responsible for refunds.
- Write the approval question.
- Insert the message author, order id, and sentiment as pills.
- Set a deadline or escalation only when the process needs one.
Configure The Outcome
On the approval condition’s true path, add the connected-app and notification steps your workspace supports. For a Stripe-style refund flow:- Add a Connector action.
- Choose the connected app and refund action.
- Map Classify request > order_id into the order or payment field.
- Add a Send message step.
- Insert the customer, order, and approval result into the confirmation message.
Test In The Run Console
Choose Test run and provide a representative support message. The canvas and bottom run console show the same run from two angles:- node state on the canvas: queued, running, waiting, done, skipped, or failed
- the path taken through condition and switch branches
- duration and available usage/cost information
- a step timeline in the console
- input and output for the selected step
- the current wait and assignee when human input is required
Fix Problems Before Publishing
When a test does not behave as expected:- Select the first failed or unexpected step.
- Compare its input with the output of the preceding step.
- Check that every variable pill points to an upstream field.
- Confirm required bindings, agents, approvers, and connectors are available.
- Run the draft again.