🎫 Automate Instagram complaint handling with Claude AI, tickets & SLA management

⚑ 200 views · 🎫 Ticket Management & Triage

πŸ’‘ Pro Tip β€” Heads up β€” if this workflow’s Instagram scraping breaks (it happens whenever Meta updates their frontend), ScraperNode is a community node that handles profiles, posts, reels, and comments without any HTML parsing.

View All Scrapers

Description

This enterprise-grade n8n workflow automates the Instagram complaint handling process β€” from detection to resolution β€” using Claude AI, dynamic ticket assignment, and SLA enforcement. It converts customer complaints in comments into actionable support tickets with auto-assignment, escalation alerts, and full audit trails, ensuring timely responses and improved customer satisfaction with zero manual intervention.

Key Features

Workflow Process

StepNodeDescription
1Schedule TriggerRuns every 15 minutes or via webhook (/complaint-handler)
2Get Instagram PostsFetches recent posts from Instagram Graph API
3Get CommentsRetrieves comments for the latest post
4Loop Over CommentsProcesses each comment individually to avoid rate limits
5Detect Complaint (Claude AI)Uses AI to classify if complaint, extract issue/severity
6IF ComplaintBranches: Proceed if yes, end if no
7Get Team MembersLoads team roster from TeamMembers sheet
8Assign TicketSets assignee via round-robin logic
9Create Ticket (Google Sheet)Appends new ticket with details and SLA due date
10Notify Assignee (Slack)Alerts assigned team member
11Wait for SLA CheckDelays to near-SLA-breach point (e.g., 20 hours)
12Check Ticket StatusLooks up ticket status in sheet
13IF SLA Breach NearChecks if unresolved; escalates if yes
14Escalate to Manager (Slack)Notifies manager for urgent action
15End (Non-Complaint Path)Terminates non-complaint branches

Setup Instructions

1. Import Workflow

2. Configure Credentials

IntegrationDetails
Instagram APIAccess token from Facebook Developer Portal
Claude AIAnthropic API key for claude-3-5-sonnet-20241022
Google SheetsService account with spreadsheet access
SlackWebhook or OAuth app

3. Update Spreadsheet IDs

Ensure your Google Sheets include:

4. Set Triggers

5. Run a Test

Use manual execution to confirm:

Google Sheets Structure

SupportTickets

ticketIdcommentTextusercreatedAtassignedTostatusslaDueissueTypeseverity
TKT-12345678Sample complaint textuser1232023-10-01T12:00:00Zjohn@team.comOpen2023-10-02T12:00:00ZProduct IssueMedium

TeamMembers

nameemail
John Doejohn@team.com
Jane Smithjane@team.com

System Requirements

RequirementVersion/Access
n8nv1.50+ (AI integrations supported)
Claude AI APIclaude-3-5-sonnet-20241022
Instagram Graph APIBusiness account access token
Google Sheets APIhttps://www.googleapis.com/auth/spreadsheets
Slack WebhookRequired for notifications

Optional Enhancements

Result: A single automated system that detects, tickets, assigns, and enforces SLAs on Instagram complaints β€” with full AI intelligence and zero manual work.

Explore More AI Workflows: Get in touch with us for custom n8n automation!

πŸ”— Nodes Used

Cron, Google Sheets, HTTP Request, Slack, Webhook

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup