AutomationFlowsAI & RAG › Automate URL Shortening with Bitly Using Llama3 Chat Interface

Automate URL Shortening with Bitly Using Llama3 Chat Interface

ByGhufran Ridhawi @ghufran-ridhawi on n8n.io

This workflow is intended for online users who want and need workflow automation that minimizes link creation time and shortens links. This has an impact on the speed of work time and energy. In reality, links created one by one and are very long are very time consuming and…

Chat trigger trigger★★★☆☆ complexityAI-powered9 nodesBitly ToolOllama ChatAgentChat Trigger
AI & RAG Trigger: Chat trigger Nodes: 9 Complexity: ★★★☆☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #3885 — we link there as the canonical source.

This workflow follows the Agent → Chat Trigger recipe pattern — see all workflows that pair these two integrations.

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
{
  "id": "djEQhBoL2sh0ojdA",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Using Bitly With Ollama Chat Model and Open Chat",
  "tags": [],
  "nodes": [
    {
      "id": "9376c577-706a-4e37-808a-30c800120f1a",
      "name": "Create Link",
      "type": "n8n-nodes-base.bitlyTool",
      "position": [
        360,
        380
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "550c40ae-6638-41b1-ab72-e007e490904f",
      "name": "Ollama Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOllama",
      "position": [
        60,
        380
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "64ceba81-c42a-41b3-b5af-84cf3d1bf3da",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        180,
        20
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "c6b0a8c8-7d45-409d-a1a0-953eeddbf5a5",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -540,
        -100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3a2bab82-1c1f-4ab7-b5e7-a242910dec00",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        -100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "665b7e23-c3aa-40c1-9556-6ebd7dbbcc41",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        140,
        -100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7a6d0601-5d5e-47bb-bd96-d2fe81d77e91",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        220
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fdc20ba4-6181-4163-88e8-768bb713ad80",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        220
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "15df35ea-63dc-4cc7-9f5f-d84f4944c807",
      "name": "Open Chat",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -60,
        20
      ],
      "parameters": {},
      "typeVersion": 1.1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "848186e0-bd85-4fcb-aa35-5fde47943340",
  "connections": {
    "AI Agent": {
      "main": [
        []
      ]
    },
    "Open Chat": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Link": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Ollama Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow is intended for online users who want and need workflow automation that minimizes link creation time and shortens links. This has an impact on the speed of work time and energy. In reality, links created one by one and are very long are very time consuming and…

Source: https://n8n.io/workflows/3885/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Business Canvas Generator. Uses chatTrigger, agent, lmChatOllama, convertToFile. Chat trigger; 28 nodes.

Chat Trigger, Agent, Ollama Chat
AI & RAG

Startup founders validating or pitching new ideas Business consultants running strategy sessions Product teams defining business logic visually Agencies offering planning frameworks to clients

Chat Trigger, Agent, Ollama Chat
AI & RAG

Translate questions about e-mails into SQL queries and run them. Uses convertToFile, readWriteFile, extractFromFile, chatTrigger. Chat trigger; 26 nodes.

Read Write File, Chat Trigger, Postgres +3
AI & RAG

This workflow is built for B2B marketers, consultants, founders, and agency owners who need to produce high-quality, research-backed thought leadership content — without spending hours on research and

Chat Trigger, Agent, HTTP Request +2
AI & RAG

Open WebUI Agent with Web Search. Uses memoryPostgresChat, chatTrigger, agent, executeWorkflowTrigger. Chat trigger; 22 nodes.

Memory Postgres Chat, Chat Trigger, Agent +5