{
  "schema_version": "1.0.0",
  "id": "saved-slack-message-to-notion",
  "title": "Save a Slack message into a Notion decisions log",
  "category": "ops",
  "difficulty": "beginner",
  "featured": false,
  "description": "When you save a Slack message, copy its text, author, channel, and link into a Notion database so decisions are findable later.",
  "tags": [
    "slack",
    "notion",
    "decisions",
    "knowledge"
  ],
  "apps": [
    "Slack",
    "Notion"
  ],
  "plan": {
    "minimum": "Free",
    "reasons": []
  },
  "tasks": {
    "typical": 1,
    "max": 1
  },
  "trigger": {
    "app": "Slack",
    "event": "New Saved Message",
    "kind": "polling",
    "title": "Message saved for later",
    "why": "Fires when you use Slack's \"Save for later\" on a message. Saving is the one-click signal that a message matters.",
    "config": {},
    "outputs": [
      "text",
      "user_name",
      "channel_name",
      "permalink",
      "ts"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "log",
      "kind": "action",
      "app": "Notion",
      "event": "Create Database Item",
      "title": "Add the message to the decisions log",
      "why": "One Notion row per saved message, with the permalink so the full thread is one click away.",
      "fields": {
        "Database": "YOUR_NOTION_DECISIONS_DB",
        "Name": "{{trigger.text}}",
        "Author": "{{trigger.user_name}}",
        "Channel": "#{{trigger.channel_name}}",
        "Slack link": "{{trigger.permalink}}",
        "Status": "To review"
      },
      "outputs": [
        "id",
        "url"
      ]
    }
  ]
}
