This n8n workflow automates the process of fetching a random cocktail recipe from an API and saving it as a JSON file. Starting with a manual trigger, it initiates an HTTP GET request to an API that provides random cocktail details. The retrieved data is then converted into binary format and saved directly as ‘cocktail.json’ on the local system. This workflow is ideal for creating automated, ready-to-use cocktail recipe files for further processing or sharing.
Step-by-step, the workflow begins with a manual trigger, allowing users to activate it on demand. The HTTP Request node contacts the Cocktail DB API to fetch a random cocktail. The response, typically in JSON format, is passed to the Move Binary Data node, which converts the JSON data into binary format suitable for file storage. Finally, the Write Binary File node writes this binary data into a file named ‘cocktail.json’ on the local file system.
Practical use cases include generating daily random cocktail recipes for a website, creating a collection of recipes for testing data handling in applications, or automating content update processes for bartending or mixology services.
The workflow demonstrates simple API integration and file handling within n8n, showcasing automation capabilities for managing recipe data or similar JSON-based content.
Reviews
There are no reviews yet.