This n8n workflow automates the process of retrieving a random cocktail recipe from an online API and converting the JSON response into XML format. The workflow is triggered manually, making it ideal for on-demand data fetching or testing API responses.
Step-by-step, the workflow starts with a manual trigger node labeled ‘On clicking execute’. When activated, it initiates an HTTP request to ‘https://www.thecocktaildb.com/api/json/v1/1/random.php’, which returns a random cocktail recipe in JSON format.
Once the data is received, it flows into an XML node configured to convert JSON data into XML format. The result is a structured XML document of the cocktail recipe, which can be used for further processing, data integration, or storage.
This workflow is especially useful for developers or content managers who want to dynamically fetch random recipes and convert the data into different formats for use in websites, apps, or datasets.
Reviews
There are no reviews yet.