Use this powerful n8n workflow to create a local AI Agent powered by Ollama/Llama 3. Users submit URL shortening requests via a chat interface, and the AI uses the specialized Bitly n8n node tool to execute the action. A perfect n8n template for AI tooling.
Download this n8n workflow template and start using it instantly.
AI Enthusiasts: Users keen on deploying local Large Language Models (LLMs) like Llama 3 via Ollama within a functional n8n template.
Marketing Professionals: Individuals who frequently need to shorten URLs quickly based on natural language instructions.
n8n Developers: Anyone looking for advanced examples of using the n8n AI Agent node framework and custom tools.
Technical Teams: Groups requiring internal chat-based tools integrated with business services like Bitly.
This sophisticated n8n workflow demonstrates the power of combining local AI models with external service providers. The primary challenge this n8n template solves is turning complex API calls into simple, natural language conversations. Instead of manually navigating the Bitly interface or constructing a specialized API request, a user can simply chat with the automation, saying something like 'Please shorten Google's homepage URL.'
The automation uses the n8n AI Agent structure to intelligently determine the user's intent. It leverages the Ollama Chat Model (allowing for local, private AI processing) and provides it with a specific tool—the Bitly Create Link n8n node. This approach makes service automation extremely accessible and dramatically expands the utility of your self-hosted n8n instance.
This n8n workflow operates entirely based on the LangChain Agent structure within n8n, ensuring that the AI handles all decision-making regarding tool use.
To deploy this specialized n8n workflow, follow these steps:
This n8n workflow leverages several specialized nodes to achieve seamless AI-driven automation:
Open Chat (n8n trigger):
Function: Serves as the primary starting point (n8n trigger) for the entire workflow, receiving user input from a chat UI.
Key Configuration: Activated via a unique webhook URL, designed to pass the user's chat message content to the next node.
AI Agent:
Function: The central intelligence unit of this n8n template. It orchestrates the process, utilizing the connected LLM (Ollama) to reason and decide whether to call the provided tool (Bitly) based on the input from the n8n trigger.
Key Configuration: Connects simultaneously to one language model and one or more tools.
Ollama Chat Model:
Function: Provides the Large Language Model capabilities, allowing the AI Agent to understand the user's intent. This crucial n8n node facilitates private, local processing.
Key Configuration: Requires configuration of the Base URL for the Ollama server and the specific model name (e.g., llama3).
Create Link (Bitly n8n node):
Function: The specific utility tool available to the AI Agent. Its sole purpose in this n8n workflow is to communicate with the Bitly API to shorten a specified URL.
Key Configuration: Needs valid Bitly API credentials.
Automate UGC video creation using Google Gemini and Veo 3. This n8n workflow analyzes an image, generates AI video content, and schedules it for Instagram using the Postiz n8n node.

Automate social media monitoring using this comprehensive n8n workflow. Fetch posts via Apify, analyze sentiment with the OpenAI n8n node, send alerts via Slack, and log results in Google Sheets. Explore powerful n8n templates.

Use this powerful n8n workflow to automate high-quality, character-limited tweets (X posts) using GPT-4, track history in Google Sheets, and prevent duplicate content. Discover more n8n templates.

Automate your DeFi yield strategy using this powerful n8n workflow. Monitor your USDC balance, automatically deposit excess funds into Aave, and top off your wallet when low. Use this n8n template for reliable Web3 automation.

Automate UX research planning using a multi-step n8n workflow. Leverage Google Gemini AI for question generation, refinement, method proposal, and iterative feedback via interactive Gmail forms.








































