Configure the posting refill
set_post_refillConfigure automatic post refill: enable/disable, set daily caps, spending limits, and preview changes before queueing. Pause without canceling scheduled posts; start in dry-run for safe planning.
Instructions
Turn the automatic posting refill on or off and set how it behaves. PASS ONLY WHAT CHANGES. enabled:false is the PAUSE — it removes the recurring job outright, and posts already queued are left alone (cancel those with cancel_scheduled if you want them gone). It starts in dryRun, which plans and previews without queueing; set dryRun:false only once a human has read a preview from run_post_refill. THE CADENCE IS THE BRAND’S POSTING TIMES, not a number here: three posting times means three posts a day. Raising maxImagesPerDay / maxVideosPerDay / maxCreditsPerDay above 0 lets it SPEND on new creative — at 0 (the default) it only reuses renders already in the Library and costs nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | No | TELEGRAM — which chat, group or channel posts go to (@username or numeric id). Without one, telegram is skipped: there is no default chat and posting to the wrong one is a public mistake. | |
| dryRun | No | true (the default) = plan and preview only, queue nothing. Set false ONLY after a human has read a preview. | |
| pageId | No | FACEBOOK / INSTAGRAM / THREADS — which connected Page to publish from (list_meta_pages). Omit for the brand’s only Page. | |
| boardId | No | PINTEREST — which board Pins go on (list_pinterest_boards). Without one, Pinterest is skipped: a Pin on the wrong board is a public mistake, so it is never guessed. | |
| enabled | No | on/off. false PAUSES it: the recurring job is deleted and nothing new is queued. Already-queued posts are untouched. | |
| channels | No | restrict it to these channels. Omit (or send an empty list) to use every connected channel that can carry each post. | |
| daysAhead | No | how far ahead to keep the queue full, 1–30 (default 7) | |
| postsPerDay | No | cap the posts per day BELOW the number of posting times. 0 (default) = use every posting time, which is where "3 a day" comes from. To post MORE per day, add posting times instead. | |
| maxImagesPerDay | No | how many NEW images a day it may render when the Library runs dry. 0 (default) = none, spend nothing. | |
| maxVideosPerDay | No | how many NEW videos a day it may render. 0 (default) = none. Video is the expensive one — hundreds of credits each. | |
| maxCreditsPerDay | No | a hard credit ceiling per day, checked BEFORE any render starts. It binds independently of the counts above. | |
| assetCooldownDays | No | how long before a Library render may be posted again (default 30). It never repeats one inside this window — it queues fewer posts and says so. | |
| linkedinOrganizationId | No | LINKEDIN — which company Page to post as (list_linkedin_pages). A single shared Page is used automatically; a Page that is not shared with this brand is ignored rather than failing the whole post. |