Documentation
N8N Integration Guide
A basic guide to get you started with A4F in your N8N workflows by importing a pre-built template.
Introduction
N8N is a powerful workflow automation tool that can connect to various services via APIs. This guide provides a simple, quickstart method for beginners to integrate A4F into their N8N instance using a pre-configured workflow.
A Note from Our Team
If you're an experienced N8N user and have ideas to improve this documentation or the workflow itself, we would be incredibly grateful for your contribution! For advanced help, or to share your expertise, please join our Telegram group or Discord community.
Prerequisites
- An active N8N instance (either cloud or self-hosted).
- An A4F API Key from your API Keys dashboard.
Quickstart: Import the Workflow
The fastest way to get started is by importing a pre-made workflow file.
- Download the Workflow File
First, download the workflow template. This is a JSON file that contains the pre-configured nodes.
Download Workflow.json - Import into N8N
In your N8N dashboard, create a new workflow. Then, click the three-dots menu at the top of the canvas and select 'Import from File'. Choose the `.json` file you just downloaded.
Image Placeholder: N8N Import from File menu.
- View the Imported Workflow
After a successful import, you will see the demo workflow loaded onto your canvas.
Image Placeholder: The imported demo workflow in N8N.
Configuration: Add Your API Key
The final step is to authenticate the workflow with your personal A4F API key.
- Click on the 'HTTP Request' node within the workflow to open its settings panel.
- Under the "Authentication" section, find the "Value" field for the "Authorization" header.
- Delete the placeholder text
<Your Key>
and paste in your A4F API key. The final value should look likeBearer your-a4f-api-key-here
.
Image Placeholder: HTTP node settings for API key.
How to Use the Workflow
That's it! Your workflow is now ready. The default trigger is a chat input, so you can start by typing a prompt in the chat interface to test it. This is a very basic workflow, designed to show how the connection works.
Beyond the Basics
If you are an experienced N8N user, you can customize this workflow to fit your needs. Change the trigger, add logic to process the model's output, or connect it to hundreds of other services available in N8N.
Was this page helpful?