n8n Workflow

Kb Tool Confluence Knowledge Base

This n8n workflow automates tasks and integrates with various services. Kb Tool Confluence Knowledge Base - ready to import and run in your n8n instance.

n8n workflow.json

About This Script

This n8n workflow automates tasks and integrates with various services. Kb Tool Confluence Knowledge Base - ready to import and run in your n8n instance.
Features:
  • Makes HTTP requests to external APIs
Source Code
{
    "nodes": [
        {
            "id": "f1142274-898d-43da-a7ff-2b2e03f2dc73",
            "name": "Execute Workflow Trigger",
            "type": "n8n-nodes-base.executeWorkflowTrigger",
            "position": [
                1220,
                840
            ],
            "parameters": [],
            "typeVersion": 1
        },
        {
            "id": "1f407421-2dd6-4e0c-bc74-cfb291e475ed",
            "name": "Query Confluence",
            "type": "n8n-nodes-base.httpRequest",
            "position": [
                1640,
                840
            ],
            "parameters": {
                "url": "https://n8n-labs.atlassian.net/wiki/rest/api/search",
                "options": [],
                "sendQuery": true,
                "sendHeaders": true,
                "authentication": "genericCredentialType",
                "genericAuthType": "httpBasicAuth",
                "queryParameters": {
                    "parameters": [
                        {
                            "name": "cql",
                            "value": "=text ~ \"{{ $json.query }}\""
                        }
                    ]
                },
                "headerParameters": {
                    "parameters": [
                        {
                            "name": "accept",
                            "value": "application/json"
                        }
                    ]
                }
            },
            "credentials": {
                "httpBasicAuth": {
                    "id": "B1Cj4Uh9d9WKWxBO",
                    "name": "Confluence API Key"
                }
            },
            "typeVersion": 4.2
        },
        {
            "id": "f1ab7e79-6bd8-4b87-b6dc-96f9d46cdd16",
            "name": "Return Tool Response",
            "type": "n8n-nodes-base.set",
            "position": [
                2040,
                840
            ],
            "parameters": {
                "options": [],
                "assignments": {
                    "assignments": [
                        {
                            "id": "c1d46e59-9340-43f3-bc2a-fbd4e0def74f",
                            "name": "response",
                            "type": "string",
                            "value": "=\"Title\": \"{{ $json.results[0].content.title }}\"\n\"Link\": \"{{ $json._links.base }}{{ $json.results[0].content._links.webui }}\"\n\"Content\": {{ $json[\"results\"][0][\"excerpt\"] }}\nWhen users request the password, make sure to send them the link above to reset it in markdown. "
                        }
                    ]
                }
            },
            "typeVersion": 3.3
        },
        {
            "id": "19be50a2-4835-48a6-b06a-7996231c519d",
            "name": "Sticky Note",
            "type": "n8n-nodes-base.stickyNote",
            "position": [
                1037.1879432624112,
                466.2978723404259
            ],
            "parameters": {
                "color": "#FFF59D",
                "width": 460.26595744680884,
                "height": 598.588007755415,
                "content": "Configuration note: update with your credentials or endpoint."
            },
            "typeVersion": 1
        },
        {
            "id": "0012feaa-89f5-40a4-86d6-98e0e9648bd5",
            "name": "Sticky Note3",
            "type": "n8n-nodes-base.stickyNote",
            "position": [
                1520,
                469.2511978555872
            ],
            "parameters": {
                "color": "#FFF59D",
                "width": 350.94680851063845,
                "height": 588.3931371954408,
                "content": "Configuration note: update with your credentials or endpoint."
            },
            "typeVersion": 1
        },
        {
            "id": "6982692e-61c5-47fc-9946-ada32d5fa2a1",
            "name": "Sticky Note4",
            "type": "n8n-nodes-base.stickyNote",
            "position": [
                1900,
                460
            ],
            "parameters": {
                "color": "#FFF59D",
                "width": 648.2749545725208,
                "height": 597.2865893156994,
                "content": "Configuration note: update with your credentials or endpoint."
            },
            "typeVersion": 1
        },
        {
            "id": "9570ee97-8508-4c7f-a2da-a327fbc7db46",
            "name": "Sticky Note5",
            "type": "n8n-nodes-base.stickyNote",
            "position": [
                460,
                460
            ],
            "parameters": {
                "width": 543.0233137166141,
                "height": 854.6009864319319,
                "content": "Configuration note: update with your credentials or endpoint.",
                "color": "#FFF59D"
            },
            "typeVersion": 1
        }
    ],
    "connections": {
        "Query Confluence": {
            "main": [
                [
                    {
                        "node": "Return Tool Response",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Execute Workflow Trigger": {
            "main": [
                [
                    {
                        "node": "Query Confluence",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    },
    "n8n_version": "1.5.0"
}
Requirements
n8n instance, API credentials for connected services
Tags
#n8n #automation #workflow
Quick Actions
More in n8n Workflows