agentleFS
Eugenevdm01Eugenevdm01/eugenes-meta-agent/skills/vanx-social-planner/SKILL.md

vanx-social-planner

Skill4 starsChanged 6 months agoMITView on GitHub

Post and schedule content to all connected social media channels via VanX Funnels (GoHighLevel) Social Planner API. Use when posting organic content, scheduling posts, running test posts, or automating weekly content distribution through VanX to Facebook, Instagram, TikTok, Pinterest, YouTube, LinkedIn, and Twitter/X.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After publish time: check each platform directly for the live post

    line 109

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

VanX Social Planner Skill

Post content to all connected social channels via the GHL Social Planner API — no manual copy-paste into VanX required.

Credentials

VariableValue
GHL Private Integration Keypit-6ff7993c-483e-4849-be9c-8162b682850a
Location ID (VAN Studios)0v8hTB0RC0jAGJhoB4Jr
Eugene's User IDpFeaeTg6P4b5E1S1Qjva

Scope requirements: The key must have socialplanner/post.write and socialplanner/account.readonly. If you get a 401, regenerate the key in VanX → Settings → Integrations → Private Integrations with those scopes added.

Quick Start — Use the Script

For any posting task, use the pre-built script directly:

python /home/ubuntu/skills/vanx-social-planner/scripts/post_to_vanx.py \
  --caption "Your caption text #hashtag" \
  --image-url "https://cdn.example.com/image.jpg" \
  --minutes-ahead 15 \
  --type post

Always run with --dry-run first to preview which channels will be targeted before posting live:

python /home/ubuntu/skills/vanx-social-planner/scripts/post_to_vanx.py \
  --caption "Test" --dry-run

The script automatically:

  • Fetches all connected accounts for the location
  • Filters to real social platforms only (skips community/group channels)
  • Skips expired OAuth tokens
  • Posts to each active channel with the correct platform-specific payload

Workflow for Weekly Content Posting

  1. Generate image using generate tool → save to /home/ubuntu/webdev-static-assets/
  2. Upload to CDN using manus-upload-file /path/to/image.png → get public URL
  3. Write caption — include brand voice, hook, CTA, and hashtags
  4. Dry-run to confirm target channels
  5. Post using the script with --minutes-ahead 15 (or longer for scheduled content)
  6. Verify in VanX → Marketing → Social Planner → Calendar view

Posting to Specific Channels Only

To post to a subset of channels (e.g., Funnel Junkies only, not Van Studios), import the script as a module:

import sys
sys.path.insert(0, '/home/ubuntu/skills/vanx-social-planner/scripts')
from post_to_vanx import get_active_accounts, post_to_channel
from datetime import datetime, timezone, timedelta

accounts = get_active_accounts()
fj_accounts = [a for a in accounts if 'funnel' in a.get('name', '').lower()]

schedule_date = (datetime.now(timezone.utc) + timedelta(minutes=15)).strftime('%Y-%m-%dT%H:%M:%SZ')
for account in fj_accounts:
    result = post_to_channel(account, caption="Your text", image_url="https://...", schedule_date=schedule_date)
    print(result['channel'], '✅' if result['success'] else '❌')

Platform-Specific Rules

PlatformCaptionImageVideoNotes
Facebook✅✅✅Content OR media required
Instagram✅ (feed)✅✅No caption for stories
TikTok✅❌✅Requires tiktokPostDetails.privacyLevel — script adds automatically
Pinterest✅✅❌Add pinterestPostDetails.title for best results
YouTube✅❌✅Video required for posts
LinkedIn✅✅✅Token may expire — reconnect in VanX if 401
Twitter/X✅✅✅Token may expire — reconnect in VanX if 401

Story Posts

For Instagram/Facebook stories, omit the caption (script handles automatically with --type story):

python post_to_vanx.py --image-url "https://..." --type story --minutes-ahead 5

Troubleshooting

SymptomCauseFix
401 on all requestsKey missing socialplanner scopesRegenerate key in VanX with social scopes, update GHL_KEY in script
0 active channels foundResponse parsing issueAccounts are at results.accounts — see references/api-reference.md
422 validation errorMissing type, userId, or accountIdsEnsure all three are in payload
LinkedIn/Twitter failingExpired OAuth tokenReconnect in VanX → Social Planner → Settings → Connected Accounts
TikTok 422Missing privacyLevelScript adds this automatically; if posting manually add tiktokPostDetails
Community channels includedPlatform filter not appliedScript filters to SOCIAL_PLATFORMS set — community/group channels are excluded

Verification After Posting

  1. Go to VanX → Marketing → Social Planner
  2. Switch to Calendar or List view
  3. Confirm posts appear with correct scheduled time
  4. After publish time: check each platform directly for the live post

Reference Files

  • references/api-reference.md — Full endpoint docs, payload schemas, Eugene's account IDs, and error reference
  • scripts/post_to_vanx.py — Production-ready posting script with CLI and importable module interface

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.