Skip to content
SIHub Guides
Select language
Guides/Social media marketing agent
SIHub · Guides

Social media marketing agent

Under /app/social-marketing and via the SIHub menu item Social media marketing you prepare bios, posts, campaigns and graphics for your business.

How it works

  1. Enter your business, target audience, offer and platform. Available goals are engagement, inquiries and sales. Tone, call to action, brand color and start date can be adjusted.
  2. Prepare a plan with 1 to 14 posts. Three bio variants, hooks, captions, calls to action, image ideas and alt texts are created instantly from local templates. A seven-day Instagram plan also includes a story in portrait format.
  3. Edit texts and graphics. The graphic preview supports square, portrait and story formats. Download PNG images for your platform, editable SVG graphics and the entire draft as JSON.
  4. Name and save the campaign. Open, edit or delete saved drafts later. Simultaneous changes are detected; if there is a conflict, reload and compare.
  5. Have existing bio or post texts reviewed. Enter real metrics and compare variants. For a meaningful test, change only the hook, the call to action or the graphic.
  6. Under Channels to Connect Instagram or the matching provider. The dialog shows the available formats and account requirements. Once the operator app is set up, it takes you to the actual account authorization at the provider; otherwise it shows the setup steps and the matching redirect URL. Then open a saved, unchanged draft and submit a single post immediately or schedule the entire campaign according to its post days. Each job shows its status in the Studio.

Independently of this, public links to your social media profiles can optionally be added under Settings → Social media profiles or removed. Profile links you have already saved are kept there. This information is not required for working in the Studio.

The instant drafts use local templates. They require neither provider access nor background workers. Your details are adopted as entered and must be checked for factual accuracy before use. Only a post that is explicitly submitted or scheduled reaches the platform; the Studio does not use any advertising budget.

Publishing via platform APIs

Account Supported formats
Instagram Image post, Story (business account), Reel
Facebook Page Image post, Reel
YouTube channel Video
LinkedIn member Image post
TikTok Not offered: Channels, the Social Media Studio and Social media profiles do not show TikTok

Set up provider apps for the API connection

For the Instagram approval of the SIHub operator app, the Meta fields to fill in, the public deletion instructions, the permission justifications and the review test procedure are described under Instagram app review.

SIHub uses the operator's own OAuth apps for account authorization. Enter their IDs and secrets in the private operator file /etc/sihub/sihub.env or, in Compose mode, in deploy/.env.production. The redirect URIs are derived from AIHUB_PUBLIC_URL and must be registered with the respective provider exactly as shown. For AIHUB_PUBLIC_URL=https://sihub.at the following applies:

Platform Operator values Redirect URI Requested permissions
Facebook Page SIHUB_META_APP_ID, SIHUB_META_APP_SECRET https://sihub.at/api/social-connections/facebook/callback pages_show_list, pages_read_engagement, pages_manage_posts
Instagram the same Meta app https://sihub.at/api/social-connections/instagram/callback pages_show_list, pages_read_engagement, instagram_basic, instagram_content_publish
YouTube SIHUB_YOUTUBE_CLIENT_ID, SIHUB_YOUTUBE_CLIENT_SECRET https://sihub.at/api/social-connections/youtube/callback youtube.upload, youtube.readonly as full Google OAuth scopes
LinkedIn SIHUB_LINKEDIN_CLIENT_ID, SIHUB_LINKEDIN_CLIENT_SECRET https://sihub.at/api/social-connections/linkedin/callback openid, profile, w_member_social
TikTok SIHUB_TIKTOK_CLIENT_KEY, SIHUB_TIKTOK_CLIENT_SECRET are reserved https://sihub.at/api/social-connections/tiktok/callback cannot be used at present Direct Post and the OAuth connection are blocked in SIHub

For Facebook and Instagram, enable Facebook Login and the listed Page or Instagram permissions in the Meta app. The authorizing member needs permission to create content on the Facebook Page. Instagram must be a professional account linked to this Page; Stories require a business account. If the app is to serve accounts outside its test roles, the corresponding provider approvals are required before connecting. Meta: Instagram API and Page tokens

For YouTube, enable the YouTube Data API v3 in the Google project and use an OAuth client for web applications with the redirect URI listed above. SIHub requests the full scopes https://www.googleapis.com/auth/youtube.upload and https://www.googleapis.com/auth/youtube.readonly during authorization. The Google consent screen and, if required, verification for public use must be in place for these permissions. The current videos.insert-reference does not mention a blanket restriction of unverified API projects to private videos; account settings can affect the actual visibility. Check it after the upload. A compliance audit is required for higher API quotas. Google: OAuth for YouTube web applications, YouTube: videos.insert, YouTube: Quotas and audits

For Google's verification of branding and permissions, SIHub and TattooHub ship the required public information: in the section #google-dienste the home page explains, without requiring sign-in, what Google Calendar and YouTube are used for. Under /legal/privacy#google the retrieved data, storage, sharing with AI providers, revocation and the commitment to the Google API Services User Data Policy (Limited Use), with an English summary. In the Google project, enter the home page, /legal/privacy and /legal/terms of the respective domain. You also verify the domain in Google Search Console, for example with a DNS TXT record. For sensitive permissions, Google also requires a demo video that shows the authorization page with a visible client_id and how each permission is used. The texts ship with the usual deploy; no new tables or credentials are needed for this. Google: API Services User Data Policy

For LinkedIn, enable the products Sign in with LinkedIn using OpenID Connect and Share on LinkedIn in the provider app. SIHub publishes via w_member_social to the personal profile of the authorizing member; company pages are not integrated. LinkedIn: Product access and permissions

For Direct Post, TikTok requires, among other things, approval of video.publish as well as a preview with a visibility choice and consent. These flows are not yet enabled here; entered TikTok keys do not turn them on. TikTok: Direct Post requirements

The usual Apache deploy adds missing operator fields as empty values, keeps existing keys and restarts the app and bot worker with the installed media dependencies. In Compose mode, missing fields in the existing deploy/.env.production are likewise treated as empty values; the template contains all eight names. Without complete app values, provider authorization remains blocked. The configuration check reports missing apps; incomplete or invalid key pairs that have been entered stop the activation without printing their values.

If the Meta app is configured, the same deploy also checks the locally served privacy, terms and deletion pages. Operator details still missing from the privacy policy are reported as to-dos before App Review, without blocking existing installations. The normal Apache activation removes query parameters and referrers from the SIHub access logs, so OAuth codes and signed media parameters are not stored in new access logs. Existing log files are kept.

After entering the values issued by the provider and once the provider has approved the app, use the normal AppHub deploy action for Apache, even without a new Git commit. For Compose, use the usual docker compose --env-file deploy/.env.production -f deploy/compose.yml up -d --build-call. A changed service configuration recreates the app and bot worker with the new values and keeps the volumes; a mere container restart does not pick up changed environment values. Docker: Compose up, Docker: Compose restart

Under Channels the owner or administrator then grants the account authorization. Connect with Facebook/Instagram/YouTube/LinkedIn remains visible as the main action even before setup and then opens its requirements. Only a configured provider app enables the redirect to authorization; for Instagram, the action is called Continue to Facebook authorization. Under Settings → Social media profiles saves Add profile only an optional public link; publishing is unlocked only once the provider authorization has been completed. For TikTok, only the profile link in the settings is currently available, with no provider connection.

Without a file of your own, SIHub creates a JPEG from the saved post graphic. For a Reel or video, this becomes a simple, silent, eight-second portrait MP4; you can upload your own MP4 instead. For Instagram Stories, the text comes from the graphic; a separate Story caption is not transferred via this image API path. A text idea labeled “Carousel” is published as a single image post. For YouTube, the channel, visibility and consent must be explicitly selected for the individual job or the scheduled campaign. Before uploading, SIHub compares the current OAuth channel with the saved channel. YouTube documents the upload API; LinkedIn documents posts and image media.

A job can be in the queued, publishing, processing, published, failed, unknown or cancelled state. unknown means that the provider may already have published the post. SIHub does not resend such a job; check the actual status on the platform first. The same draft version with the same post, account, format, YouTube visibility and media content uses the same job ID. For immediate jobs, this ID stays stable regardless of when the job is triggered; for scheduled jobs, the publishing time is part of it. Re-uploading identical media does not create a new job. The existing bot worker picks up due jobs, even after a restart.

Using the agent

Under /app/bot-templates the Social media marketing agent can be set up there; alternatively, extend the agent team under /app/helper-hub with it. The agent can create local drafts, check connected accounts and publishing statuses, and request posts and stories. The master agent can use it as a specialist agent.

For individual AI texts, assign the required business knowledge to the agent. It uses the operator's central AI access, provided the matching subscription is active. For example: “Create an Instagram story about our weekly offer and publish it to my connected business account.” The agent first checks the account and the allowed formats. It then proposes the finished content with caption, text graphic, account and optional time in the existing action approval. After approval, the editable draft and the publishing job are saved together; the bot worker runs the job. The user does not need to copy the draft into the Studio separately.

In this way, agents publish image contributions and stories with generated text graphics as well as reels made from edited raw material (see Raw material and reels); The permitted formats of the account are decisive. For Instagram stories, the visible text must be in the graphic, as the separate caption is not transferred there. Your own video uploads to the studio and YouTube visibility releases remain in the studio. queued confirms that the job was submitted; only published confirms the success reported by the provider. The agent can check the status again; the draft and job are also visible in the Studio. Repeating the same approved action does not create a second post. An unclear status is not automatically published again.

The tools are only available in private, signed-in agent work orders. Regular work orders that use these tools are also stored privately; public widgets and general API keys get no access. The existing action approval cannot be bypassed by a publication configured as “read-only”. During the usual deploy, existing marketing agents receive the tools once. Unchanged older default instructions are updated; custom prompts, subscriptions, tool settings and deliberately removed tools are kept. If needed, you can add the new publishing steps to custom prompts. Work orders explains how this works.

Instagram agents per brand

Under Marketing → Instagram agents (/app/social-agents), each brand gets its own agent with its own Instagram account. The page shows, for each brand, the account status, whether the agent is running, key figures, pending approvals, all posts with status and Instagram link, the launch plan, and ad drafts.

  1. Create a new agent: Enter the brand, target audience, offer, goal, tone and posts per week. SIHub creates the agent, a paused schedule, a launch plan with seven posts and three ad drafts.
  2. Connect the account: The Instagram account is created on Instagram itself (a professional account linked to a Facebook Page) and then added under Channels as a connection. SIHub cannot create Instagram accounts.
  3. Assign and start: Assign the connected account to the agent and select Start agent to launch it. The first proposal arrives after a few minutes, then at the chosen frequency.
  4. Approve: Proposals appear under Awaiting your approval. Publication is only requested once an owner or administrator approves it.

An assigned agent sees and uses only its own account; without an assignment, it publishes nothing. If an agent has three unprocessed proposals, it does not start another run until a decision is made, so that no model costs arise for unreviewed proposals. Removing the account assignment pauses the agent.

Post verification and brand profile

Each agent reviews their posts before you see them. The tool Check post before suggestion (native_social_review) works locally, without external services:

  • Hooks: Two to six variants are rated (0-100) and ranked according to concreteness, immediacy, brevity, tension and appeal. Greetings, announcements (“Today I want to…”), “Stop scrolling” and guarantees cap the rating. A library with 19 hook formulas, two of which are only for tattoo studios and one only for other businesses, provides a template, example, intended use and typical traps.
  • Caption: shows the approximately 125 characters before “…more”, checks a maximum of 2,200 characters, maximum of 5 hashtags ( Instagram limit since December 2025), maximum 20 mentions, exactly one next step, search terms, open placeholders such as {{preis}} and the brand's taboo words.
  • Documented information: Prices, percentages, discounts, “since…”, customer numbers and awards must be included in the brand facts. This means the agent cannot make up numbers.
  • Naturalness: German and English AI phrases (“In today's fast-moving world”, “immerse yourself”, “game changer”, “not only ... but”), interaction lures, hyphens, emoji lists and uniform sentence lengths result in a score with concrete places. Invisible characters (zero-width spaces, BOM, control characters) are removed when publishing; Emoji connections are preserved. German quotation marks “…” and the dash “ – ” are correct and will not be changed.
  • Reel speaking texts: are clocked at 150 words per minute. A hook over three seconds, bars over 4.5 seconds, a missing loop to start with and deviations from the target length are marked.

The tests are heuristics. They identify weak entries and risky entries, but do not predict which of two good hooks will get more reach.

Lock before release: A publication proposal with deficiencies (limits exceeded, placeholders, unsubstantiated information, bait, taboo words, several empty phrases) will not be presented to you. The agent receives the reasons back and revises the proposal. Suggestions in the sharing list show the feed preview, hook and naturalness rating, and open hints. Once approved, only platform boundaries and open placeholders will stop publication; the visible text remains as you shared it.

Brand profile: Per agent can be found below Brand profile Provide proven facts, the voice of the brand (example sentences), words that should never appear, and up to five search terms. Save instantly updates the agent's scanning tools and schedule. The schedule lets the agent choose an unused hook formula in each run, line up three hooks, improve the caption up to three times and only then suggest it.

The usual deployment upgrades existing agents: It adds to the checking tool, creates empty profile fields, gives the profile to the tools and only replaces the schedule prompt if it is still unchanged. Own prompts, removed tools, account assignments, running status and subscriptions are retained. Repeated deployments no longer change anything. New tables or access data are not necessary.

Raw material and reels

Under Raw material each agent uploads their own video clips; He cuts reels out of these and submits them for approval.

  1. Upload: MP4, MOV, WebM, MKV or AVI, up to 512 MB and ten minutes per clip, maximum 40 clips per agent and 6 GB per workspace. The browser transfers the file in 1.5 MB chunks to meet the existing 2 MB request limit; An aborted upload does not continue on the next attempt, but starts again. Unfinished uploads will be deleted after 24 hours.
  2. Processing: The botworker converts each clip once into a uniform H.264 intermediate format (longest side 1920 px, 30 fps, AAC sound, silent track for clips without sound), creates a preview image and determines scene changes in seconds. The original is then deleted; only the intermediate format remains in the private instance directory (social_media/raw). Material filmed vertically from the smartphone is correctly aligned based on the rotation metadata.
  3. Describe: The agent doesn't see the video. He cuts based on the Label, the Description with seconds (“0–6 s exterior view, 6–18 s Anna tying the bouquet”) and the recognized scene change. Without description, he chooses based on scene changes and clip order.
  4. Cut: The tool Cut reel from raw material (native_social_cut) renders up to twelve sections (0.5 to 60 s each, together 3 to 90 s) in portrait format 1080×1920 at 30 fps. Landscape format is cropped in the middle (crop) or shown entirely on a blurred background (blur). Text overlays (hooks in the first three seconds, up to eight of them) are rendered as graphic layers; the sound remains or is muted. There is an optional closing board of 2.5 seconds in the brand color with a heading, line and call to action. The editing runs without release because it only creates a local file; the same action identifier never renders twice. Results appear below Agent cuts with video preview. No music, no external files, no transfer to third parties.
  5. Publish: The agent commissions the editing as a format reel with the media_id of the video via his assigned account. The proposal goes through the contribution review and waits Awaiting your approval with video preview. After release, the existing botworker publishes via the Instagram - API (REELS with signed HTTPS media address); queued means commissioned, published confirmed.

In each run, the agent's schedule first checks whether there is any unused raw material. If there is one, the run becomes a reel, otherwise an image contribution. Have the reel cut now also immediately starts a private job with optional hints; As long as the agent is working, a second order is not possible. Each brand agent run has up to twelve model calls.

Raw material and cuts are tied to the agent: an agent only reads and cuts his own clips and can only publish his own cuts. The preview routes /api/social-agents/<agent>/clips/<clip>/preview and /api/social-agents/media/<id> Deliver files only to logged in members of the workspace, with scope requests for spooling in the browser. Deleting a clip removes the file, thumbnail and metadata; Sections that have already been rendered are retained. General API keys have no access.

Technology: The processing uses this imageio-ffmpeg installed ffmpeg (libx264, AAC, filter scale, crop, boxblur, overlay, concat,Scene recognition select), a maximum of six threads per operation. The botworker processes one clip per run and keeps the job lease active during long cuts; If a worker aborts, a clip is re-queued once after 30 minutes and then marked as failed. The tables social_raw_clips and social_video_cuts creates the usual deploy via the schema management; The same deployment adds the tools to existing marketing and brand agents View raw footage and Cut reel from raw material, binds them to the respective agent, gives the format to the unchanged publishing tool reel and only replaces the schedule prompt if it is still unchanged. Own prompts, edited tools, account assignments, running status and subscriptions are retained; repeated deployments no longer change anything. New access data is not necessary.

Advertising designs are text and graphic templates. SIHub does not run paid ads or spend advertising budget; Ads appear in Meta's Ads Manager. Agents create image posts, stories and reels from uploaded raw material; A reel from a text graphic can still be created in the studio from the draft.

The usual deploy activates the page; Existing agents, schedules and subscriptions remain unchanged.

Notes and metrics

Platform notes link to official sources; review date: October 14, 2026. No claims are made about algorithm weights, guaranteed reach or universal posting times. Local text checks are writing tips, not ranking predictions. TikTok's ad creative guidelines are labeled as such.

Interaction rate = interactions / reach × 100; click-through rate = clicks / impressions × 100; conversion rate = conversions / clicks × 100. Missing values or a denominator of zero do not yield a percentage. Use only comparable time periods and measurement types.

Access and storage

Drafts are stored in MariaDB in social_marketing_drafts. Publishing jobs and media metadata are stored in social_publications and social_media_assets, raw material and cuts of the agents in social_raw_clips and social_video_cuts; Dateien bleiben im privaten SIHub-Instanzverzeichnis. OAuth-Kontotoken und Auftragstexte sind arbeitsbereichsgebunden verschlüsselt; Betreiber-App-Schlüssel bleiben in der privaten Betreiberdatei. Nur zeitlich begrenzt signierte HTTPS-Medienlinks erlauben der Plattform den Abruf. Inhaber, Administratoren und Bearbeiter dürfen Entwürfe vorbereiten und Veröffentlichungen beauftragen; Konten verbinden nur Inhaber und Administratoren. Personen mit Leserecht dürfen Entwürfe und Status ansehen. Allgemeine API-Schlüssel erhalten keinen Zugang zum Studio. Schreibanfragen und Grafikexporte verwenden Sitzung und CSRF-Schutz.

The API is available at /api/social-marketing: overview, /generate, /creative, /drafts, /media, /publications and /publications/schedule. Changes, deletions and publications require expected_updated_at from the most recently loaded draft. The graphic export returns image/svg+xml; all private responses remain uncached. The complete routes are listed in the OpenAPI documentation.