Imagine With Craft

Use Craft’s API to Build With n8n

Use Craft's API to build apps on n8n. Fetch your documents, sync content, and create custom tools powered by your Craft data.

Craft
n8n

Enabling the API for Documents

First, you have to enable the API in order for Craft to setup an API endpoint for your documents. Then, you use the API endpoint URL to connect to the server from n8n.

Step 1

Open the “Imagine” tab

Step 2

Click “Add Your First API Connection”

Step 3

Configure your API connection with a name.

Step 4

Click “Add Document” to select which documents this API connection has access to.

Step 5

The API URL that will be used to interact with your document is now displayed at the top

Step 6

Click the “Download AI Bundle” button. This will download a folder containing the API documentation and the content of your doc.

Using the API in a n8n Prompt

Once the API is enabled for your Craft docs, you can now focus on writing a prompt that n8n will use to generate your project.

In order for n8n to see how to use the API and understand the structure of your document, you attach the AI bundle to your prompt. This bundle is a markdown document that contains the current content of your Craft doc as well as the API documentation.

Step 1

Geh zu n8n und klick auf „Workflow hinzufügen“, um einen neuen Workflow zu erstellen.

Step 2

Klick auf „Ersten Schritt hinzufügen“ und such nach „Craft“. Wähle den Craft-Knoten aus den Ergebnissen aus.

Step 3

Stöbere in den verfügbaren Craft-Aktionen – du kannst Blöcke abrufen, einfügen, aktualisieren, löschen, verschieben und suchen, Sammlungen verwalten und vieles mehr.
Wähle eine Aktion aus, verbinde dein Craft-Konto und konfiguriere den Knoten. Verknüpfe weitere Knoten, um deine Automatisierung zu erstellen.

Some Ideas to Get You Started

Browse Examples