π Monitor brand mentions and draft crisis responses with OpenAI and Telegram
β‘ 26 views Β· π Market Research & Insights
Description
Quick overview
This workflow monitors brand mentions stored in Google Sheets on a 15-minute schedule, uses OpenAI to classify crisis severity and draft PR responses, logs incidents to a crisis sheet, and routes approval decisions through Telegram, with Slack alerts for workflow errors.
How it works
- Runs every 15 minutes and reads mention rows from the Google Sheets
Mentionstab. - Evaluates each mention individually and uses OpenAI (gpt-4o-mini) to classify severity, sentiment, and crisis type.
- Updates the mention row in Google Sheets as βNo Action Neededβ when severity is
None. - For any severity above
None, uses OpenAI (gpt-4o-mini) to draft a holding statement, a full press response, and a recommended response channel. - Appends the drafted crisis event to the Google Sheets
Crisis_Logtab, sends the draft to an approver via Telegram, and marks the mention as βAwaiting Approval.β - Listens for the approver to reply
approveorrejectin Telegram, updates the matchingCrisis_Logentry in Google Sheets, and sends a confirmation back to Telegram. - If any node fails, posts an execution error alert to a designated Slack channel.
Setup
- Add credentials for Google Sheets OAuth2, OpenAI, Telegram Bot API, and Slack OAuth2.
- Create a Google Sheets document with
MentionsandCrisis_Logtabs and ensure the columns match the template (including IDs and status fields). - Replace
YOUR_GOOGLE_SHEET_IDin all Google Sheets steps and setYOUR_APPROVER_CHAT_IDin the Telegram approval message step. - Set
YOUR_SLACK_CHANNEL_IDin the Slack error alert step. - Review and customize the brand tone and messaging guidelines in the OpenAI response-drafting prompt before enabling the workflow.
π Nodes Used
Google Sheets, Slack, Telegram, Telegram Trigger, Schedule Trigger, OpenAI
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File