StyloDocs
Recipes

Sentiment-Driven Routing

Analyze ticket sentiment, classify intent with AI, then route to specialized handling: human review for refunds, Linear issues for bugs, and auto-tagging for everything else.

View as Markdown

Analyze ticket sentiment, classify intent with AI, then route to specialized handling: human review for refunds, Linear issues for bugs, and auto-tagging for everything else.

Prerequisites: Connect Zendesk, Linear before adding this recipe. See Integrations.

How it works

Each box is a block; arrows show the order Stylo runs them, and branch labels show the path taken on each outcome.

Parameters

Set these when you add the recipe to your workspace:

ParameterTypeDefault
linear_team_idstring
refund_approval_channelstring#refund-approvals

Blocks used

Every block in this recipe, linked to its reference page where one exists:

BlockTypeWhat it does
Webhooktrigger/webhookTrigger workflow via HTTP webhook
Get Ticket Contextzendesk/get-ticket-contextGet complete ticket context (ticket, conversation, customer, assignee, organization) optimized for AI
Classifyai/classifyClassify content into predefined categories using AI
Add Tagszendesk/add-tagsAdd tags to a ticket for classification and tracking
Routersystem/routerBranch into N paths via boolean predicates or AI classification.
Human Reviewsystem/human-reviewPause and wait for human approval before continuing
Add Comment / Replyzendesk/add-commentAdd a public reply or internal note to a ticket
Create Ticketlinear/create-ticketCreate an issue in Linear

When to use it

Use this when different emotional tones and intents deserve different handling — for example, routing refund requests to a human for approval, filing bug reports as Linear issues, and auto-tagging everything else.

Adapt it

This recipe is a starting point. To fit it to your workspace:

  • Set the linear_team_id parameter so bug reports file into the right Linear team.
  • Set the refund_approval_channel parameter to the Slack channel where refund approvals are requested.
  • Edit the sentiment categories and the Route definitions to match the intents your team handles.

On this page