Automate with n8n
Connect heycreo to the hundreds of apps n8n works with: a new row in a content plan, a product in your shop or a form entry becomes a finished design, and the file goes on to Slack, e-mail or your CMS.
There are two ways, and you can combine them:
- An AI agent with heycreo as a tool. The agent reads the request in plain words, picks a template and fills it. Good when every request is a little different.
- Fixed steps without AI. HTTP requests to the REST API do exactly the same thing every time. Good for a known template and structured data.
You need n8n 1.122 or later, cloud or self-hosted, and a heycreo API key of a service account, from Settings → Developers → Service accounts. For the AI agent below, MCP must be allowed for it (it is by default), with the toolsets the agent uses.
1. Create the credential
In n8n, create a credential of type Multiple Headers Auth with two headers:
| Name | Value |
|---|---|
Authorization | Bearer heycreo_… |
X-heycreo-Org | your workspace's slug, the name in its address: app.heycreo.io/<slug>/… |
Name it "heycreo". Both kinds of workflow below use it.
2. An agent that makes designs
The workflow: a trigger, an AI Agent with a chat model and heycreo as its tool, then wherever the result should go.
-
Trigger. For example Google Sheets → On row added on your content plan, with columns such as Channel, Headline and Text.
-
AI Agent. Set the Prompt to the row, for example:
PromptCreate a {{ $json.Channel }} design. Headline: {{ $json.Headline }}.
Text: {{ $json.Text }}. Export it and answer only with the file's link.Under Options → System Message:
System MessageYou create marketing material in heycreo. Always start from one of the
workspace's templates. Never invent colors, fonts or logos. -
Chat Model on the agent: any model n8n offers, for example Anthropic Chat Model.
-
Tool on the agent: MCP Client Tool with
Field Value Endpoint https://app.heycreo.io/api/mcpServer Transport HTTP Streamable Authentication Multiple Headers Auth, credential "heycreo" Tools to Include Selected: get-templates,create-template-design,set-template-design-controls,studio-export,get-exportsOptions → Timeout 120000 -
Output. Pass
{{ $json.output }}, the agent's answer with the link, to Slack, Gmail or a column in the same sheet.
Selecting the tools keeps the agent to what this workflow is for: it can make and export designs, but cannot delete, publish or change settings. In the agent's tools panel you can also require a person's approval before a tool runs.