Stuck at a point. Help me to built my Automated LinkedIn Post Generator

This is the workflow I made, but the problem is on lovable i built a website for it. So the the user before posting review and edit it. Bt unable to get the generated image from n8n to lovable. If I am choosing only for text generation then successfully getting outputs on the lovable website. In case of both image nd text then my website showing generation failed.

I tried telling it that i am getting output image as binary file. use convert to file in n8n workflow bt then also failed to render image and text both on my lovable website.

I am getting both image and text output from my last endpoint webhook on n8n but not on my website.

Please help me if i make any error in this n8n workflow. So provide me a better solution.

Hello @Saurabh_Upadhyay please provide information about your n8n setup and the workflow that could be used to reproduce issue

1 Like

Here’s a breakdown of my N8N workflow, node by node, and exactly what each one does:

Webhook

Trigger: Listens for incoming POST requests at my endpoint

Respond
Using ‘Respond to webhook node’

If

Condition: Checks the includeImage flag(on my website)

True branch: User wants both text + image

False branch: User wants text only

:globe_with_meridians: True Branch (Text + Image)
Content Generator1

Type: Chat model node (e.g. GPT 4o)

Input: The post title/topic from the webhook (set by user on the website)

Output: A first draft of LinkedIn post copy

Prompt Writer1 → Image Prompt Generator1

Prompt Writer1 (memory/tool): Takes the draft post from Content Generator1

Image Prompt Generator1: Crafts an optimized prompt for my image‑generation API (e.g. “Create a sleek, tech‑themed illustration showing…”)

Generate Image

Type: HTTP Request node to my image API(using flux model for this)

Input: The prompt from Image Prompt Generator1

Output: Binary image file (b64_json)

Respond to Webhook

Payload:

postContent: the text from Content Generator1

image: the binary file from Generate Image

If use select to generate post only without image:
Then the second if branch triggers and then the end webhook will generate only text.

So the second branch is working fine but my first branch output is not able to render by my lovable linkedin website.