Skip to main content
A

Alfred Nutile

2
Workflows

Workflows by Alfred Nutile

Workflow preview: Using external workflows as tools in n8n
Free beginner

Using external workflows as tools in n8n

This guide will show you how to use a workflow as a reusable tool in n8n, such as integrating an AI Agent or other specialized processes into your workflows. By the end of this example, you'll have a simple, reusable workflow that can be easily plugged into larger projects, making your automations more efficient and scalable. ![url_to_crawl.png](fileId:894) With this approach, you can create reusable workflows like "Scrape a Page," "Search Brave," or "Generate an Image," which you can then call whenever needed. While n8n makes it easy to build these workflows from scratch, setting them up as reusable components saves time as your automations grow in complexity. Setup Add the "Execute Workflow Trigger" node Add the node(s) to perform the desired tasks in the workflow Add a final "Set" or "Edit Fields" node at the end to ensure all external workflows return a consistent output format Details In this example, the "Execute Workflow Trigger" expects input in the following JSON format: ```json [ { "query": { "url": "https://en.wikipedia.org/wiki/some_info" } } ] ``` Once your external workflow is ready, you can instruct the AI Agent to use this tool by connecting it to the external workflow. Set up the schema type to "Generate from JSON Example" using this structure: ```json { "url": "URL_TO_GET" } ``` ![generate_json.png](fileId:896) Finally, ensure your external workflow includes a "Set" or "Edit Fields" node at the end to define the response format. This helps keep the outputs of your reusable workflows consistent and predictable. ![response.png](fileId:895)

A
Alfred Nutile
Engineering
10 Jan 2025
3893
0
Workflow preview: Upload files via n8n form and save them to Digital Ocean Spaces
Free beginner

Upload files via n8n form and save them to Digital Ocean Spaces

## How it works This workflow provides a streamlined process for uploading files to Digital Ocean Spaces, making them publicly accessible. The process happens in three main steps: 1. User submits the form with file, in this case I needed it to upload images I use in my seo tags. 2. File is automatically uploaded to Digital Ocean Spaces using S3-compatible storage 3. Form completion confirmation is provided ## Setup steps * Initial setup typically takes 5-10 minutes * Configure your Digital Ocean Spaces credentials and bucket settings * Test the upload functionality with a small sample file * Verify public access permissions are working as expected ![Credentials](https://dailyai.nyc3.cdn.digitaloceanspaces.com/do_template_example.png) ## Important notes * Credentials are tricky check the screenshot above for how I set the url, bucket etc. * I am just using the S3 Node * Set the ACL as seen below ![ACL](https://dailyai.nyc3.cdn.digitaloceanspaces.com/do_settings.png) ## Troubleshooting * Bucket name might be incorrect * Region Wrong * Check Space permissions if uploads fail * Verify API credentials are correctly configured You can see a video here. (live in 24 hours) [https://youtu.be/pYOpy3Ntt1o](https://youtu.be/pYOpy3Ntt1o)

A
Alfred Nutile
File Management
20 Dec 2024
3829
0