{
  "nodes": [
    {
      "id": "7fffe9f8-5109-4136-b22b-2c74286f0c57",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        128,
        160
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 30 8 * * 1-5"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "79ec09b7-14b6-42ef-b001-379ca47397f9",
      "name": "Query Super Assistant",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        720,
        160
      ],
      "parameters": {
        "url": "https://api.super.work/v1/super",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "question",
              "value": "={{ $json[\"Final query\"] }}"
            },
            {
              "name": "assistantId",
              "value": "YOUR-ASSISTANT-ID"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "54119da4-f714-4892-952c-f29aa766a93d",
      "name": "Send digest in Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        1008,
        160
      ],
      "parameters": {
        "text": "={{ $json.answer.replace(/\\{\\[\\d+\\]\\(([^)]+)\\)\\}/g, '<$1|(source)>') }}",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR-CHANNEL-ID"
        },
        "otherOptions": {
          "unfurl_links": false,
          "includeLinkToWorkflow": false
        }
      },
      "credentials": {
        "slackApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.3
    },
    {
      "id": "2173e42e-8651-4a43-8011-2bad1a25531b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        64,
        -400
      ],
      "parameters": {
        "width": 816,
        "height": 384,
        "content": "# Automated Company Data Digests with Super\n\nOn a schedule, this workflow asks a predefined question to your custom AI assistant in Super (which is connected to your apps like Jira, Notion, etc.) and posts the synthesized answer as a digest in Slack.\n\n## How to use it\n\n1.  **Set up in Super:** First, build your assistant in **Super** and get your **API Token** and **Assistant ID**.\n2.  **Configure this workflow:**\n    * In the **Set query** node, write your recurring question.\n    * In the **Query Super Assistant** node, paste your **Assistant ID** and add your **API Token** (using a Bearer YOUR_TOKEN_HERE credential is recommended).\n    * In the **Send digest in Slack** node, choose your channel.\n3.  **Set your schedule & activate!**"
      },
      "typeVersion": 1
    },
    {
      "id": "b65a9d7f-e429-4058-84a7-2ee3abdbda5f",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        352,
        32
      ],
      "parameters": {
        "color": 4,
        "height": 304,
        "content": "### Edit the query to send to your Super assistant"
      },
      "typeVersion": 1
    },
    {
      "id": "1480df8c-fd4a-426b-8a2a-d001589472e4",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        64,
        32
      ],
      "parameters": {
        "color": 5,
        "height": 304,
        "content": "### Pick your trigger recurring schedule"
      },
      "typeVersion": 1
    },
    {
      "id": "22485ffb-d921-4ed4-9c90-4ce05edcfea5",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        32
      ],
      "parameters": {
        "color": 4,
        "height": 304,
        "content": "### Connect your super.work credentials & paste your Assistant ID"
      },
      "typeVersion": 1
    },
    {
      "id": "3299af5b-7d8c-43a8-bfa7-0350f58d383c",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        32
      ],
      "parameters": {
        "color": 4,
        "height": 304,
        "content": "### Connect your Slack credentials and pick the destination channel"
      },
      "typeVersion": 1
    },
    {
      "id": "55bf5942-c73e-40d7-8fce-75c13750d84e",
      "name": "Set the query",
      "type": "n8n-nodes-base.set",
      "position": [
        416,
        160
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "3fce3bc4-a2ab-48f3-b76f-df614d9fcbd0",
              "name": "Final query",
              "type": "string",
              "value": "=Report the progress we have made on our key projects yesterday."
            }
          ]
        }
      },
      "typeVersion": 3.4
    }
  ],
  "connections": {
    "Set the query": {
      "main": [
        [
          {
            "node": "Query Super Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Set the query",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Query Super Assistant": {
      "main": [
        [
          {
            "node": "Send digest in Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}