No Products in the Cart
π Slack + Bitly UTM Generator β Powered by OpenAI
Description:
This no-code n8n workflow transforms how marketing teams generate Bitly links with UTM parameters β directly from Slack. Powered by AI and fully automated, this system extracts relevant campaign data from a Slack message, creates a clean Bitly shortlink with UTM tags, and logs everything to a Google Sheet for tracking and reporting.
Perfect for growth marketers, content teams, and anyone tired of manually building UTM-tagged links.
If you like to follow step-by-step build of workflows like these, check out:
https://www.youtube.com/@Automatewithmarc
βοΈ How It Works
π’ Slack Trigger
The workflow starts when a user mentions the bot in a Slack channel (eg, @BitlyBot link this for IG campaign).
π§ AI Agent (LangChain)
Uses GPT-4o-mini to infer UTM values ββ(eg, utm_source, utm_medium, utm_campaign)
Normalizes short forms like "IG" to "instagram"
Follows UTM naming conventions (eg, lowercase, underscore-separated)
π Information Extractor
Pulls cleanly structured UTM data from the AI ββresponse to prep for Bitly.
π Bitly Tool Node
Generates a short link using the inferred target URL + UTM values.
π Google Sheets Logger
Automatically appends the full details (Bitly link, UTM parameters, campaign owner) to a Google Sheet for easy access.
π’ Slack Response
Replies in-thread with the new Bitly link and campaign details, formatted clearly for the user.
π Error Handling
If Bitly link generation fails, the workflow gracefully stops with an error message.
π§ Tools & Services Used
Slack (Trigger + Response)
LangChain AI Agent (with GPT-4o-mini)
Bitly (via Bitly Tool Node)
Google Sheets (auto-log generated links)
OpenAI GPT-4o-mini (Language model for prompt understanding)
π‘ Use Cases
π Instantly create UTM-tagged links for campaigns
π Maintain a central Bitly + UTM link database in Google Sheets
π§ Use AI to reduce manual tagging and formatting errors
π€ Empower your team to request links via Slack, no forms needed
β
Setup Instructions
Slack:
Set up a Slack bot and connect it using Slack Trigger and Slack response nodes.
Bitly API:
Generate a Bitly access token and set up credentials in the Bitly node.
OpenAI / LangChain:
Connect your GPT-4o or GPT-4 API key to the OpenAI Chat Model nodes.
Google Sheets:
Use OAuth2 credentials to connect to your Google Sheet.
Make sure the sheet has matching columns for UTM parameters (sample headers included in the node schema).