How it works

Follow these 10 simple steps to start turning Help Scout tickets into research-backed responses automatically

help scout logo icon

Conversation Tags Updated

App connector: Help Scout • Time to complete: 0 minutes (Auto-configured)
Why this matters: This trigger captures tag changes on Help Scout conversations, enabling agents to signal that specific tickets need AI research simply by applying a tag rather than manually searching for information.

When any conversation's tags are updated in Help Scout—whether you add, remove, or change tags—this trigger captures the tag update and conversation details. It monitors your Help Scout account continuously and passes the full conversation data to the next step for tag verification. The trigger automatically connects to your Help Scout account once you authorize MESA, with no manual configuration needed.

Number of matches

App connector: Loop • Time to complete: 0 minutes (Auto-configured)
Why this matters: Counts how many times the "updated by mesa" tag appears on the conversation to determine if this ticket has already been processed, preventing duplicate research and wasted API calls when tags are modified multiple times.

The step loops through all tags on the conversation and counts specifically how many match "updated by mesa"—a tag that gets added at the end of the workflow. If the count is 0, it means this ticket hasn't been processed yet; if the count is 1 or higher, it's already been researched. This count gets passed to the next filter step to decide whether to continue or stop the workflow.

Filter

App connector: Filter • Time to complete: 1 minute
Why this matters: Acts as the decision gate that ensures research only runs on tickets that haven't been processed yet, maintaining workflow efficiency and preventing redundant AI research on the same ticket.

The filter checks if the count from the previous step equals exactly 0. If yes (the ticket hasn't been processed), the workflow continues to retrieve conversation threads; if no (the ticket was already researched), the workflow stops here. This is a hard-coded filter with no configuration needed—it automatically protects against reprocessing tickets you've already researched.

Get List of Conversation's Threads

App connector: Help Scout • Time to complete: 0 minutes (Auto-configured)
Why this matters: Retrieves all messages in the conversation thread to provide complete customer context for AI research, ensuring understanding of the full issue, previous troubleshooting attempts, and conversation history.

The step fetches every thread (message) in the conversation using the conversation ID from the trigger. This includes the initial customer inquiry, any follow-up questions, and previous agent responses that might provide additional context about what the customer needs. Each thread's body text gets extracted and prepared for the next step to combine into a format the AI can process. The step automatically uses the conversation ID to pull the correct thread data from Help Scout.

Map (Extract Message Bodies)

App connector: Loop • Time to complete: 0 minutes (Auto-configured)
Why this matters: Extracts just the message text from all conversation threads into a comma-separated format that can be passed to AI, creating a readable conversation history without metadata clutter.

The Map step iterates through all the thread bodies retrieved in the previous step and combines them into a comma-separated text string. For example, if there were 3 messages in the conversation, this step extracts each message body and joins them together, creating a single text field that contains the entire customer inquiry from start to finish. This formatted text gets inserted into the Perplexity AI prompt for research.

Loop (Process "research needed" Tags)

App connector: Loop • Time to complete: 0 minutes (Auto-configured)
Why this matters: Identifies and processes conversations specifically tagged with "research needed," enabling the workflow to selectively research only tickets agents have flagged rather than processing all tag updates.

The step loops through all tags on the conversation and filters specifically for the tag "research needed" (this exact tag name is required). When it finds a match, it allows the workflow to continue to the Perplexity research step; if no match is found, the workflow stops here. The loop structure allows you to process multiple matches if somehow the tag appears more than once, though typically it will match once or not at all.

Create Chat Completion

App connector: Perplexity • Time to complete: 15 minutes
Why this matters: Uses Perplexity's web-connected AI to research the customer's issue with current, reliable sources, generating a structured draft response that agents can review and refine before sending to customers.

This step sends the conversation context to Perplexity AI with detailed research instructions.

Critical configuration: You must customize the AI prompt by replacing placeholder text:

  1. Replace "[INSERT COMPANY NAME]" with your company name (appears 3 times)
  2. Replace "[INSERT COMPANY WEBSITE]" with your website URL
  3. Replace "[INSERT WHAT COMPANY DOES]" with your product/service description

The AI receives {{loop_3.comma_separated}} (all conversation messages) and uses model "sonar-pro" with search_mode "web" to research the issue. It's instructed to:

  1. Research relevant information from reliable sources (vendor docs, official standards, technical sources)
  2. Include product specifications, competitive comparisons, troubleshooting protocols, industry standards
  3. Output a structured draft with: Summary, What We Found (facts + links), Steps to Resolve, Notes & Caveats, Sources
  4. Use neutral, precise language appropriate for support replies
  5. Cite all sources for non-obvious claims

Search capabilities: Perplexity searches the web in real-time (unlike ChatGPT's training cutoff), enabling research on current versions, recent outages, latest documentation, and time-sensitive technical issues. The temperature "0.2" setting ensures factual, consistent responses rather than creative variation.

Add Note to Conversation

App connector: Help Scout • Time to complete: 0 minutes (Auto-configured)
Why this matters: Saves the AI-generated research draft directly to the Help Scout conversation as an internal note, making it immediately accessible to the assigned agent without requiring context switching to external tools.

This step creates a Help Scout note on conversation {{helpscout.id}} with text {{perplexity.response}} (the AI's structured research draft). Internal notes are visible only to agents, not customers. The agent can review the research, refine the response to match their voice, add personalization, and reply to the customer with confidence backed by thorough research.

Agent workflow: After this note is added, agents see it in Help Scout's conversation view, can edit it, and use it as the foundation for their customer reply rather than starting from scratch or doing manual research.

Map (Extract Current Tags)

App connector: Loop • Time to complete: 0 minutes (Auto-configured)
Why this matters: Creates a comma-separated list of all existing tags on the conversation so the "updated by mesa" marker can be added without removing other tags that agents have applied.

The step loops through all the conversation's current tags and extracts them into a comma-separated list. For example, if the ticket has tags "research needed, billing, priority," this step creates a list containing all three tags so they can be maintained when adding the "updated by mesa" tag. This ensures you don't lose your existing tag structure when the workflow marks the ticket as processed.

help scout logo icon

Update Conversation's Tags

App connector: Help Scout • Time to complete: 1 minute
Why this matters: Adds the "updated by mesa" tag to mark this conversation as processed, preventing duplicate research if tags are modified again and providing agents with a clear indicator that AI research has been completed.

This step updates the conversation's tags to include all existing tags ({{loop_4.comma_separated}}) plus ", updated by mesa". This additive approach preserves any tags agents applied while adding the processing marker. The "updated by mesa" tag is checked in step 2 to prevent re-processing.

Tag visibility: This tag appears in Help Scout alongside other tags, providing transparency to agents about which tickets have received AI research.

Make it your own

Customize this workflow even further:

Route to different research prompts by tag
Add conditional logic after the "research needed" check that examines additional tags (like "technical", "billing", "integration") and uses different Perplexity prompts tailored to each support category for more specialized research.
Add approval before sending to customer
Insert an approval step after the note is created that notifies a senior agent or team lead, allowing them to review AI-generated research before the assigned agent uses it in customer replies.
Create reply draft directly
Instead of adding a note, modify the workflow to create a draft reply in Help Scout using the Perplexity response, saving agents the copy/paste step (but requiring more careful prompt engineering for customer-facing tone).
Track research usage metrics
Add a Google Sheets or database step that logs each research request with ticket ID, tag type, research topic, and timestamp for analyzing which issues require the most research support.

Frequently asked questions

How do I customize the research output format?
Edit the "Create Chat Completion" step and modify the "Output Format" section of the prompt. You can change the structure, add/remove sections, adjust detail level, or specify different types of information to include based on your support team's needs.
Can I use different AI models or adjust research depth?
Yes, the model parameter can be changed from "sonar-pro" to other Perplexity models. Temperature (currently 0.2) controls consistency vs creativity—lower values (0.1) produce more consistent factual responses, higher values (0.5+) produce more varied responses. Adjust based on your accuracy vs flexibility needs.
What if Perplexity can't find relevant information?
The AI will indicate when information is uncertain or unavailable in its response, typically in the "Notes & Caveats" section. The agent can then do additional manual research or escalate to specialized team members. Consider adding a fallback that tags tickets as "needs-specialist" if confidence is low.
What is a template?
Templates are pre-made workflows by our team of experts. Instead of building a workflow from scratch, these have all the steps needed to complete the task.
Can I personalize a template?
Yes! Every step can be customized to meet your exact requirements. Additionally, you can even add more steps and make it more sophisticated.
Are templates free?
Yes! Our entire library containing hundreds of templates are free to use and customize to your exact needs.

Ready to start turning Help Scout tickets into research-backed responses automatically?

Join thousands who've automated their work and saved an average of 3.5 hours every week.

Start with this template — It's free
7-day free trial • 24 min setup • Cancel anytime