Integration
Ellesmere for n8n
Add an image or text AI step to any n8n workflow. The workflow pauses while Ellesmere runs your prompt, then carries on in the same run with the result.
How it works
This recipe uses the n8n steps you already have, an Ellesmere project hook to start the run, and a signed webhook to return the result. Project hooks are coming soon, so you can plan the workflow now and switch it on when they ship.
- 1
Create a hook for your project
On the project's Webhooks page, press New hook, name it, and copy its URL and secret.
- 2
Add an HTTP Request node
POST to the hook URL with the secret in the
X-Hook-Secretheader, and a JSON body with your prompt ID, variables and image. SetcallbackUrlto{{ $execution.resumeUrl }}. - 3
Add a Wait node
Set it to resume on a webhook call. Ellesmere posts the signed result to the resume URL, and the workflow continues in the same run.
- 4
Use the output
The result holds the output text or JSON, and links to output images. A later node can fetch a link with a plain GET, with no API key.
Sample request
The body your workflow sends to the hook URL, with sample values. Pass an idempotencyKey so a retried node runs the model once.
{
"promptId": "prm_8f2k1c",
"label": "production",
"variables": {
"background": "white showroom",
"photo": "https://cdn.example.com/cars/1234.jpg"
},
"callbackUrl": "{{ $execution.resumeUrl }}",
"idempotencyKey": "listing-1234-front",
"metadata": {
"listing_id": "1234"
}
} n8n community node
The n8n community node is on the roadmap. It will connect with an Ellesmere API key and run a prompt as a step of its own, with no webhook setup.