{
  "schema_version": "1.0.0",
  "id": "brand-mention-alert",
  "title": "Flag negative brand mentions and questions in Slack",
  "category": "social",
  "difficulty": "beginner",
  "featured": false,
  "description": "Read each new alert from a mentions RSS feed, classify sentiment and intent, and post only complaints and unanswered questions to Slack.",
  "tags": [
    "social",
    "rss",
    "monitoring",
    "slack",
    "ai-classification"
  ],
  "apps": [
    "RSS by Zapier",
    "AI by Zapier",
    "Filter by Zapier",
    "Slack"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 3 steps after the trigger",
      "Filter by Zapier",
      "AI by Zapier"
    ]
  },
  "tasks": {
    "typical": 1,
    "max": 2
  },
  "trigger": {
    "app": "RSS by Zapier",
    "event": "New Item in Feed",
    "kind": "polling",
    "title": "New mention in the alert feed",
    "why": "Fires for each new mention in the alert feed.",
    "config": {
      "Feed URL": "https://www.google.com/alerts/feeds/YOUR_ALERT_FEED_ID"
    },
    "outputs": [
      "title",
      "link",
      "summary",
      "pub_date",
      "author",
      "categories"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "read",
      "kind": "ai",
      "app": "AI by Zapier",
      "event": "Analyze and Return Data",
      "title": "Classify the mention",
      "why": "Returns sentiment and intent separately; a neutral question is still worth answering.",
      "fields": {
        "Model": "Default (fast)",
        "Instructions": "This is a web mention of our brand YOUR_BRAND_NAME. Return sentiment (positive, neutral, or negative toward the brand), intent (question if the author is asking something we could answer, complaint, praise, or news), and summary (one sentence).",
        "Input data": "{{trigger.title}}\n{{trigger.link}}\n\n{{trigger.summary}}",
        "Output fields": "sentiment, intent, summary"
      },
      "outputs": [
        "sentiment",
        "intent",
        "summary"
      ]
    },
    {
      "key": "worth",
      "kind": "filter",
      "app": "Filter by Zapier",
      "event": "Only continue if...",
      "title": "Only complaints and questions",
      "why": "Most mentions are neutral news and stop here.",
      "conditions": [
        [
          {
            "field": "{{read.sentiment}}",
            "operator": "(Text) Exactly matches",
            "value": "negative"
          }
        ],
        [
          {
            "field": "{{read.intent}}",
            "operator": "(Text) Exactly matches",
            "value": "question"
          }
        ]
      ],
      "usually": false
    },
    {
      "key": "alert",
      "kind": "action",
      "app": "Slack",
      "event": "Send Channel Message",
      "title": "Post it to the social channel",
      "why": "Includes the link so whoever replies can go straight to the conversation.",
      "fields": {
        "Channel": "#social",
        "Message Text": ":mag: {{read.sentiment}} {{read.intent}}: {{read.summary}}\n{{trigger.link}}",
        "Send as a bot?": "Yes",
        "Bot Name": "Zap alerts",
        "Include a link to this Zap?": "No"
      },
      "outputs": [
        "ts",
        "permalink"
      ]
    }
  ]
}
