Here’s what happens when someone uses the published app today (more on how you can improve it later):
1. Enter your OpenAI key
The user pastes their own OpenAI API key into the app’s interface built in WeWeb.
2. Generate LinkedIn topics
The user sees a suggested prompt (which they can update) to generate LinkedIn topics relevant to their business.
When they submit, the app calls an n8n workflow that uses GPT-4 to generate 6 potential LinkedIn post ideas.
3. Review and refine topics
The 6 topics appear in the WeWeb interface.
The user can review and edit them directly before moving on.
4. Turn topics into posts
Once happy with the topics, the user triggers a second n8n webhook.
This generates full LinkedIn posts with hashtags for each chosen topic.
5. (Optional) Add AI images
If enabled, the workflow also calls DALL·E to create images that match each post.
6. Copy or share the results
The finished posts (and images, if generated) are sent back to the WeWeb front-end.
The user can copy them, edit further, or save them for posting on LinkedIn.
This way, instead of spending 30+ minutes drafting a LinkedIn update, the user can create polished, on-brand posts in seconds.
💡Pro tip💡
Right now, the app requires users to bring their own OpenAI key to make it work. But if you’re thinking about building this into a real SaaS product, you don’t necessarily have to keep it that way. In the last section of this article, we’ll show you how you can adapt the templates to use your own key and monetize the app.
Step 1: Duplicate the templates
With the free templates, you don’t need to start from scratch.
The WeWeb app uses three webhook calls to talk to n8n. You’ll need to update those URLs with your own n8n instance endpoints.
Webhook 1: Generate 6 topics (on form submit)
This will work by default because it calls one of my own n8n workflows.
If you want to use your own:
In n8n, copy the production webhook URL for the “Generate 6 topics” workflow:
In WeWeb, select the “Form Container” → open the “Create topic proposals” workflow (under the Workflows tab):
Inside the REST API action, replace the existing action URL with your n8n webhook URL:
(Optional) Add a test webhook URL for staging:
Webhook 2: Generate post copy (on button click)
Follow the same process for generating the post copy:
In n8n, copy the production webhook URL for the “Generate post with hashtag” workflow:
In WeWeb, edit the “Edit Topic Popup” → open the “Save and Generate Post” workflow (attached to the Generate Post button):
In the REST API action, replace the existing action URL with your n8n webhook URL:
(Optional) Add a test webhook URL for staging:
Webhook 3: Generate image (on button click)
Repeat the same steps for generating images:
In n8n, copy the production webhook URL for the “Generate image” workflow:
In WeWeb, edit the “Generate Image” button → open the “Generate image” workflow (under the Workflow tab):
In the REST API action of the workflow, replace the existing action URL with your n8n webhook URL:
(Optional) Add a test webhook URL for staging:
Step 3: Update the OpenAI config in n8n
You have two approaches:
Option A: Let users bring their own OpenAI API key.
Pros: no extra cost for you.
Cons: less SaaS potential, since users need their own key.
Option B: Provide users your own OpenAI API key.
Pros: seamless experience for users.
Cons: you pay for the API calls → in this case, make sure your app is paid so you don’t lose money.
Here are the steps to help you set up option A (BYOK) in n8n:
Click on “Set up template” → select “Create new credential”:
Bind the API key to an expression that reads the key the user enters in the WeWeb frontend:
The key is sent to n8n but NOT stored. The app preserves it across page navigation so it’s available on the second screen, without saving it to a database:
🚨Security tip🚨
Don’t store the user’s API key in a database unless users opt in.
With these steps, you’ll have a working LinkedIn content generator in under 15 minutes.
Next steps: Customize & monetize
Alright, hopefully you found this build guide helpful!
The WeWeb and n8n templates are just starting points though.
You can publish the app for free and it will be ready to go. However, if you want to go a few steps further, you could turn it into a real SaaS product that monetize.
Here are a few ideas to help you get started:
Add User Authentication
Use WeWeb’s built-in auth features or connect a service like Supabase or Firebase.
This lets you manage users, subscriptions, and account settings.
Improve the AI Agent
Train the system to learn from users’ edits.
Over time, your app could generate posts that better reflect each user’s tone of voice.
Make It Beautiful and Branded
Customize the WeWeb UI for a professional, polished look.
Add your logo, color scheme, and even tiered pricing plans.