Easy RFP · Internal

Social Engine

This tool requires backend setup before it works end-to-end. The UI tabs (Overview / Calendar / Compose / Analytics) read from Supabase tables defined in the migration below. Without the migration applied + edge functions deployed + admin user logged in, the tabs render but show empty states or auth errors. Use this page to set them up.
Step 1

Apply the Supabase migration

Run migrations/66_social_engine_foundation.sql against your Supabase project. It creates the social_accounts, social_posts, social_post_targets, social_metrics, and social_attribution tables plus indexes and RLS policies.

supabase db push migrations/66_social_engine_foundation.sql

Or paste the SQL directly into the Supabase SQL editor.

Step 2

Deploy the edge functions

Three Deno-based edge functions handle publishing, metrics, and attribution:

Deploy via:

supabase functions deploy social-publisher
supabase functions deploy social-metrics-pull
supabase functions deploy social-attribute-signup

Set the SOCIAL_TEST_MODE secret to TRUE initially — the publisher logs only and never posts until that flag is flipped.

Step 3

Connect at least one network

Insert a row into social_accounts with the platform handle, OAuth tokens, and publish_enabled = true. The Overview tab pulls connection state from this table.

Step 4

Import the content calendar

The starter calendar (03-CONTENT-CALENDAR.csv) has 60+ pre-written posts across EN/DE/ES/FR/IT/PT. Use the Import CSV button on the Overview tab to load them as drafts, then schedule from Calendar.

Source files

What's in this kit

All 23 files from the v1.0 starter kit are checked into /tools/socialmedia/setup/ and reachable below:

MD · 10.0 KB
README.md Overview of architecture, success criteria, KPI targets.
MD · 10.5 KB
04-DEPLOY-CHECKLIST.md Step-by-step go-live checklist with rollback plan.
MD · 10.9 KB
Setup playbook Detailed Supabase + edge function configuration walkthrough.
MD · 8.4 KB
Brand kit Voice, palette, typography, post templates per network.
MD · 8.8 KB
UTM scheme Campaign / source / medium taxonomy and attribution rules.
SQL · 26.1 KB
66_social_engine_foundation.sql Schema migration: 5 tables + RLS policies + indexes.
TS · 22.6 KB
social-publisher Cross-network publisher (FB/IG/LinkedIn/TikTok APIs).
TS · 8.2 KB
social-metrics-pull Daily metrics snapshot for impressions, clicks, reach.
TS · 5.5 KB
social-attribute-signup Links inbound signups to UTM campaign + computes MRR attribution.
CSV · 20.5 KB
Content calendar starter 60+ pre-written posts across 6 languages, schedulable.
JS · 2.0 KB
utm-track.js Snippet to capture inbound UTM and attribute signups.

Status

Until Step 1–3 are done, the Overview / Calendar / Compose / Analytics tabs will load the UI but report missing config or empty data.