AutomationFlowsGeneral › Create Update And Get A Post Via Discourse

Create Update And Get A Post Via Discourse

Create Update And Get A Post Via Discourse. Uses manualTrigger, discourse. Event-driven trigger; 4 nodes.

Event trigger★★☆☆☆ complexity4 nodesDiscourse
General Trigger: Event Nodes: 4 Complexity: ★★☆☆☆

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        270,
        300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "name": "Discourse",
      "type": "n8n-nodes-base.discourse",
      "position": [
        470,
        300
      ],
      "parameters": {
        "title": "[Created] Discourse node",
        "content": "Thank you Ricardo for creating the Discourse node.",
        "additionalFields": {
          "category": 4
        }
      },
      "credentials": {
        "discourseApi": "<your credential>"
      },
      "typeVersion": 1
    },
    {
      "name": "Discourse1",
      "type": "n8n-nodes-base.discourse",
      "position": [
        670,
        300
      ],
      "parameters": {
        "postId": "={{$json[\"id\"]}}",
        "content": "Thank you Ricardo for creating the Discourse node. We can now create, update and retrieve posts using n8n.",
        "operation": "update",
        "updateFields": {}
      },
      "credentials": {
        "discourseApi": "<your credential>"
      },
      "typeVersion": 1
    },
    {
      "name": "Discourse2",
      "type": "n8n-nodes-base.discourse",
      "position": [
        870,
        300
      ],
      "parameters": {
        "postId": "={{$json[\"id\"]}}",
        "operation": "get"
      },
      "credentials": {
        "discourseApi": "<your credential>"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Discourse": {
      "main": [
        [
          {
            "node": "Discourse1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Discourse1": {
      "main": [
        [
          {
            "node": "Discourse2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "Discourse",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

About this workflow

Create Update And Get A Post Via Discourse. Uses manualTrigger, discourse. Event-driven trigger; 4 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More General workflows → · Browse all categories →