# Connect n8n

Connect flayr to n8n with your API key: install the flayr node, start workflows from flayr events with the Flayr Trigger, or begin from one of five templates.

Install the node, add your key, then build a flow or start from a template. No node installed? The HTTP Request steps do the same calls.

## Install the flayr node

The n8n-nodes-flayr community node adds a Flayr node and a Flayr Trigger.

null

1. Self-hosted n8n

Open Settings, then Community Nodes. Choose Install and enter the package name below.

2. n8n Cloud

Once the node is verified by n8n, search for flayr in the nodes panel and add it.

## Add your API key

The node connects with a flayr API key. It can do only what the key allows.

null

1. Create an API key

Open Developers, then API Keys. A key bound to a brand acts only in that brand. Pick the scopes your flows need.

2. Add a Flayr API credential

In n8n, add a Flayr API credential and fill it with the values below, with your key in place of flayr_sk_YOUR_KEY.

3. Save it

n8n tests the key when you save. A working key saves without an error.

## Actions and the Flayr Trigger

Create drafts, schedule posts and more, and start a workflow when something happens in flayr.

null

1. Add the Flayr node

It can create a draft, schedule a post, upload media, decide an approval, list posts, create a campaign and read insights.

2. Add the Flayr Trigger

Pick the events: a post published or failed, content needs approval, or a new ad lead. Activate the workflow and flayr calls it on each event. Deactivating it stops the calls.

3. Use a public address

flayr sends events only to a public HTTPS address. A local n8n needs a tunnel. Every event is signed, and the trigger drops anything unsigned.

## Start from a template

Five ready-made n8n workflows built on the flayr node.

null

1. Pick a template

New product to drafts, new blog post to a draft, new Drive photo to a draft, new ad lead to a sheet, and a weekly insights digest. Each has notes with its setup and limits.

## No node? Use the HTTP Request node

Any n8n can call the flayr API with the built-in HTTP Request node.

null

1. Use the HTTP Request node

If you cannot install community nodes, the HTTP Request node makes the same calls. The steps are in Use the API.
