Social Poster

n8n template: create a post from a shop or form webhook

Updated 2026-11-19

With this template your shop, a form on your website or another app creates posts in Social Poster by itself. The app sends a request to n8n, and n8n creates a draft. With one field you switch it so the post is scheduled right away.

Download: webhook-form-to-post.json from the help center or from GitHub. How to import the file is explained in n8n templates.

The template in n8n: Webhook, Caption present?, Settings and fields, Create the draft, Should it be scheduled?, Schedule the draft and the response.

What the template does

  1. Webhook accepts a POST request. The path is social-poster-post.
  2. Caption present? checks whether there is text in one of the fields caption, text or message. If not, n8n answers with status 400 and creates nothing.
  3. Settings and fields holds your account, the mode and the lead time, and takes link, title and image addresses from the request.
  4. Create the draft saves the post as a draft in Social Poster.
  5. Should it be scheduled? only passes the draft on when mode is schedule and the request does not contain schedule false. Then Schedule the draft schedules it minutesFromNow minutes later and confirms it.
  6. Respond with success sends back the draft ID (draft_ref), the status (status_class) and, for scheduled posts, the time in UTC (scheduled_at_utc).

With mode draft, the default, nothing is scheduled and nothing is published, even if the request sends schedule true.

Where you see the draft

The answer to your app contains the draft ID (starts with dr_). In n8n the output of Create the draft also shows the link app_draft_url under draft. After you sign in to Social Poster, it opens a read-only view of the draft. A post only appears in the calendar once it is scheduled.

In the app: If the new view is already switched on for your team, you also find the draft under Drafts in the section Drafts from n8n and AI assistants. It carries the label Automation (n8n). With the Source filter you show only these drafts. There you can edit the text, schedule the draft or delete it. Scheduling follows the same rules as in n8n: consents, approval, quota and at least 5 minutes lead time. The calendar shows scheduled posts with the same label, and you can filter by Source there too. If you don't see the section yet, the view isn't switched on for your team yet. Then use the link app_draft_url as before.

What you adapt

In the node Settings and fields:

  • accountRef: Your account reference instead of acc_YOUR_ACCOUNT_REF. How to find it is explained in n8n templates.
  • mode: The default is draft. With schedule, requests are scheduled.
  • minutesFromNow: Only used with mode schedule. How many minutes after the request the post goes out. The default is 15; the node treats values below 5 as 5.
  • caption, link, mediaUrls, title, requestAllowsSchedule: These fields take their values from the request. Only change the expressions if your app sends different field names.

In the node Webhook:

  • Path: The default is social-poster-post. You can choose your own path.
  • Authentication: If n8n is reachable from the internet, turn on authentication, for example Header Auth. Then only your app can create posts.

In Create the draft and Schedule the draft you select your Social Poster API credential.

Fields the template understands

  • caption (or text or message): the post text, required
  • link (or url): a link for the post
  • media_urls (or mediaUrls or image): publicly reachable image or video addresses
  • title: a title for networks such as YouTube, Pinterest or Tumblr
  • schedule: false (or "false" or 0) keeps this request a draft, even with mode schedule. Without the field, mode decides.

An example request body: {"caption": "Today in our farm shop: fresh apples.", "link": "https://example.com"}

How to test

  1. Save the workflow.
  2. Copy the Test URL in the Webhook node and click Listen for test event.
  3. Send a POST request with the example above to this address from your app or a tool like Postman.
  4. Check the answer: with mode draft it shows status_class draft and scheduled_at_utc null.
  5. Activate the workflow and enter the Production URL in your app.

Switch from draft to scheduled

  1. Open the node Settings and fields.
  2. Change the value of the field mode from draft to schedule. Upper or lower case and spaces at the edges don't matter. Any other value keeps the draft.
  3. Enter in minutesFromNow how many minutes after the request the post should go out.
  4. Open Schedule the draft and check that your Social Poster API credential is selected.
  5. Send a test request as above. The answer now contains scheduled_at_utc with the time and a status_class other than draft.
  6. Check the post in Social Poster in the calendar or under Wartet auf dich (waiting for you).
  7. Save the workflow. If it is active, the change applies from the next request.

If you still want some requests as drafts only, let your app send schedule false with them. To go back to drafts for everything, set mode to draft.

Typical variations

  • Your own field names: If your shop sends product_name, for example, change the expression in the caption field.
  • New product in the shop: Let your shop send a request with product name, link and image for every new product.
  • Schedule a single draft later: Add a Social Poster node with Post > Schedule Draft, enter the draft ID from the answer under Draft ID and run it once.

Errors and solutions

  • Answer 400 “A post text is missing”: The request has no caption, text or message. Check the field names and that the request is sent as JSON.
  • Answer 404: The address is wrong, or the workflow is not active. For tests you need the Test URL and Listen for test event, in production the Production URL.
  • Nothing is scheduled: mode is set to draft or misspelled, or the request sends schedule false.
  • Answer 500 or an error message: Create the draft or Schedule the draft failed. If Create the draft already worked, the draft exists anyway. You find the exact message in n8n under Executions.
  • “This account cannot be used.”: The account reference is wrong or the account is not ticked on KI-Zugriffe (AI access).
  • Posts come twice: Every request creates a new draft. Check whether your app sends the request more than once.
  • Images are missing: The image addresses must be publicly reachable and start with http or https.

Never send the Social Poster key in the request. It belongs only in the credential in n8n.

Was this helpful?