Cocktail Hour Automation: Random Drinks for Your Mattermost Channel
detail.loadingPreview
Instantly bring joy to your team's Mattermost channel with a random cocktail suggestion! This workflow automatically fetches a new drink recipe and shares it, complete with instructions and an image.
About This Workflow
Inject some fun and surprise into your team's daily communication with this n8n workflow. It's designed to be triggered by a simple webhook, which then calls out to a vast cocktail API to fetch a random drink. The retrieved cocktail's name, instructions, and serving suggestion are then formatted and posted directly into your specified Mattermost channel. To top it off, a tempting image of the drink is included, making it an irresistible invitation to unwind. This automation is perfect for boosting team morale, celebrating small wins, or simply adding a touch of delight to your workday. Setting it up is straightforward, allowing you to quickly deploy a bit of automated happiness.
Key Features
- Effortless Randomization: Automatically fetches a unique cocktail recipe every time.
- Rich Content Delivery: Includes drink name, preparation instructions, and serving glass.
- Visual Appeal: Posts an enticing image of the suggested cocktail.
- Mattermost Integration: Seamlessly posts updates to your chosen channel.
- Webhook Triggered: Easily initiated by an external event or manual call.
How To Use
- Configure the Webhook Node: Set your desired webhook path (e.g.,
webhook) and HTTP method (POST). - Set up the HTTP Request Node: Use the URL
https://www.thecocktaildb.com/api/json/v1/1/random.phpto fetch random cocktail data. - Configure the Mattermost Node:
- In the
Messagefield, use the provided expression to dynamically insert the cocktail name, instructions, and glass:=Why not try {{$node["HTTP Request"].json["drinks"][0]["strDrink"]}}? {{$node["HTTP Request"].json["drinks"][0]["strInstructions"]}} Serve in {{$node["HTTP Request"].json["drinks"][0]["strGlass"]}}. - For
Channel ID, use the expression={{$node["Webhook"].json["body"]["channel_id"]}}to post to the channel that triggered the webhook. - In
Attachments, add an object withimage_urlset to the expression:={{$node["HTTP Request"].json["drinks"][0]["strDrinkThumb"]}}.
- In the
- Mattermost Credentials: Ensure you have set up Mattermost API credentials in n8n named 'Mattermost'.
- Connect Nodes: Link the output of the
Webhooknode to the input of theHTTP Requestnode, and the output of theHTTP Requestnode to the input of theMattermostnode.
Apps Used
Workflow JSON
{
"id": "c6c9c4f9-122e-47b3-96a2-4102b7a7b57f",
"name": "Cocktail Hour Automation: Random Drinks for Your Mattermost Channel",
"nodes": 5,
"category": "Personal",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: c6c9c4f9-122e...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Related Workflows
Discover more workflows you might like
Automate Your Daily Briefing: News, Emails, and Tasks
Streamline your day by automatically fetching the latest news from Times of India, important emails from your Gmail, and your upcoming Todoist tasks. Get a consolidated, beautifully formatted daily digest delivered straight to your inbox.
AI Music Generator with Suno V3.5 (KIE.ai)
This n8n workflow automates AI music generation using the KIE.ai API, powered by the Suno V3.5 model. Users simply submit music prompts, styles, and titles via a web form, and the system handles real-time generation and delivery of the final audio output. It's perfect for quickly creating custom music for various needs.
Smart Expense Tracking with Telegram & AI
Automate your personal finance management by turning your Telegram chat into an intelligent expense tracker. Simply send a photo of a receipt or a text message, and this workflow uses AI to categorize your spending, extract crucial details, and provide instant summaries.