← All N8N workflows
AI & researchBannerbearDiscordForm TriggerHTTP RequestOpen Ai

πŸ™‹β€β™‚οΈ Optimise your images!

Configured with Bannerbear, Discord, Form Trigger, HTTP Request, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
Triggern8n Form TriggerForm TriggerWeb / APIUpload to CloudinaryHTTP RequestIntegrationSend to BannerbearTemplateBannerbearTransformSet ParametersEdit FieldsWeb / APIDownload BannerHTTP RequestMessagingDiscordDiscordAI & modelsGenerate AI BannerImageOpen Ai

Node categories in this workflow

  • Trigger
  • Web / API
  • Integration
  • Transform
  • Messaging
  • AI & models

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and βˆ’ to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
n8n Form TriggerTriggerForm TriggerSee node parameters
Upload to CloudinaryWeb / APIHTTP RequestPOST
Send to Bannerbear TemplateIntegrationBannerbearSee node parameters
Set ParametersTransformEdit FieldsSee node parameters
Download BannerWeb / APIHTTP RequestSee node parameters
DiscordMessagingDiscordmessage
Generate AI Banner ImageAI & modelsOpen Aiimage

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • bannerbearApi
  • discordBotApi
  • httpQueryAuth
  • openAiApi

Workflow notes

1. Start with n8n Forms

1. Start with n8n Forms

Read more about using forms

For this demo, we'll use the form trigger for simple data capture but you could use webhooks for better customisation and/or integration into other workflows.

2. Use AI to Generate an Image

2. Use AI to Generate an Image

Read more about using OpenAI

Generating AI images is just as easy as generating text thanks for n8n's OpenAI node. Once completed, OpenAI will return a binary image file. We'll have to store this image externally however since we can't upload it directly BannerBear. I've chosen to use Cloudinary CDN but S3 is also a good choice.

3. Create Social Media Banners with BannerBear.com

3. Create Social Media Banners with BannerBear.com

Read more about the BannerBear Node

Now with your generated AI image and template variables, we're ready to send them to BannerBear which will use a predefined template to create our social media banner.

4. Post directly to Social Media

4. Post directly to Social Media

Read more about using the Discord Node

We'll share our event banner with our community in Discord. You can also choose to post this on your favourite social media channels.

πŸ™‹β€β™‚οΈ Optimise your images!

πŸ™‹β€β™‚οΈ Optimise your images!

AI generated images can get quite large (20mb+) which may hit filesize limits for some services. I've used Cloudinary's optimise API to reduce the file size before sending to BannerBear.

Result!

Result!

Here is a screenshot of the generated banner.

Try It Out!

Try It Out!

This workflow does the following:

  • Uses an n8n form to capture an event to be announced.
  • Form includes imagery required for the event and this is sent to OpenAI Dalle-3 service to generate.
  • Event details as well as the ai-generated image is then sent to the BannerBear.com service where a template is used.
  • The final event poster is created and posted to X (formerly Twitter)

Need Help?

Join the Discord or ask in the Forum!

Happy Hacking!

Sticky Note7

🚨Required

  • You'll need to create a template in BannerBear.
  • Once you have, map the template variables to fields in this node!
Sticky Note8

🚨Required

  • You'll need to change all ids and references to your own Cloudinary instance.
  • Feel free to change this to another service!
πŸ™‹β€β™‚οΈ Optimise your images!

πŸ™‹β€β™‚οΈ Optimise your images!

Purpose and structure

This folder contains the πŸ™‹β€β™‚οΈ Optimise your images! workflow. Its executable nodes use bannerbear, discord, formTrigger, httpRequest, openAi, set. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

n8n Form Trigger

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Bannerbear/0525_Bannerbear_Discord_Create_Webhook.json MIT; preserve source notices.

More in AI & research