Skip to content

Create a parallel feedback digest

This workflow demonstrates independent parallel AI work and a reusable return contract. The matching draft is Docs 10 - Parallel Feedback Digest (workflow 592) in service 20.

Parallel feedback analysis workflow

A manual or parent workflow supplies feedback. Automation starts two independent AI branches, produces a short summary and sentiment result, waits for both, and returns three named values.

  • Configure an AI registration for Workflows.
  • Define the maximum feedback length and privacy rules.
  • Decide whether the caller requires all branches or can accept partial results.
  • Agree on the stable returned field names.

Create a blank workflow in service 20. Save the input contract first, then build the two independent branches before adding the join and return cards.

Open Triggers and add Manual Trigger. Add one required string input named feedback, describe the expected customer text, and use a synthetic default. This field becomes the contract for manual runs and parent workflows.

Manual Trigger configuration for feedback input

Open Actions and add Parallel. Create branches named Summary and Sentiment and wait for all. Both branches must read only ctx.feedback; neither may depend on the other branch’s output.

Parallel configuration for the two feedback branches

3A. Add Summarize Text to the first branch

Section titled “3A. Add Summarize Text to the first branch”

Add Summarize Text to Summary. Select the approved AI registration, insert the feedback, choose a concise style and maximum word count, and instruct the action to retain the customer outcome and friction.

Summarize Text configuration for the feedback summary

3B. Add Analyze Sentiment to the second branch

Section titled “3B. Add Analyze Sentiment to the second branch”

Add Analyze Sentiment to Sentiment. Select the approved registration, insert the same feedback, and request sentiment and confidence. Treat the result as a signal for readers, not as an automated consequential decision.

Analyze Sentiment configuration for the feedback score

Add Parallel Join after both AI cards and connect both outputs to it. Wait for all expected branches, use a timeout longer than either AI timeout, and choose an explicit policy for one failed analysis.

Parallel Join configuration for the feedback branches

Add Return Data after the join. Return stable fields named summary, sentiment, and confidence, using the expression builder to insert the corresponding upstream outputs.

Return Data configuration for the feedback result

The final canvas has six configured cards because step 3 contains two branches. Verify both branches reach Parallel Join before testing the returned contract.

Create synthetic positive, negative, mixed, neutral, very short, and maximum-length profiles. Dry-run both AI actions. Confirm Parallel starts both, Join waits for both, and Return Data uses the intended results.

Create one controlled failing branch and verify the chosen join/error behaviour. When called as a Sub-Workflow, confirm the parent receives the same three field names.

  • Feedback length and personal-data handling are documented.
  • Parallel branches do not depend on sibling output.
  • AI timeouts fit within the Parallel Join timeout.
  • Low confidence is presented as uncertainty, not a definitive customer label.
  • Returned fields are stable and small.
  • A failed branch reaches an explicit error or partial-result policy.