Social & Commerce

Connect your AI to social media, set up payments, and build income streams.

TL;DR: Connect X/Twitter (OAuth 1.0a), Reddit, LinkedIn and Facebook via their respective skills. Approval is always required before any post goes live. For selling: Gumroad for simplest setup, Stripe for custom checkout. Build in that order.

Social Media — The Golden Rule

Your AI never posts autonomously. Draft → queue for approval → you approve → post. This applies even if you've told it to post daily. Every post requires your eyes before it goes live.

X (Twitter) — xurl Skill

The xurl skill handles X/Twitter. It uses OAuth 1.0a (works on free tier).

What you need

Create the app

  1. Go to developer.twitter.com
  2. Create a new project and app
  3. Set App Permissions to "Read and Write"
  4. Generate tokens under "Keys and Tokens"
  5. Copy all four token values

Authenticate

xurl auth oauth1 # Paste each token when prompted

Test it

xurl get /2/users/me

You should see your account info. Now your AI can draft posts, read mentions, and search — but always sends posts through approval before going live.

Reddit — reddit Skill

What you need

  1. Go to reddit.com/prefs/apps
  2. Click "create another app"
  3. Choose "script" type
  4. Get your Client ID (under the app name) and Client Secret
# Add to ~/.openclaw/.env REDDIT_CLIENT_ID=your_client_id REDDIT_CLIENT_SECRET=your_client_secret REDDIT_USERNAME=your_reddit_username REDDIT_PASSWORD=your_reddit_password

LinkedIn — linkedin Skill

LinkedIn authentication requires the Chrome Extension relay (for security reasons — LinkedIn doesn't offer simple OAuth for personal posting).

# Install the linkedin skill via clawhub clawhub install linkedin # Follow the setup guide linkedin setup

Facebook & Instagram — facebook Skill

Both platforms use the Meta Developer ecosystem.

  1. Go to developers.facebook.com
  2. Create an app (Business type)
  3. Add the Pages API product
  4. Get your App ID, App Secret, and Page Access Token
# Add to ~/.openclaw/.env FACEBOOK_APP_ID=your_app_id FACEBOOK_APP_SECRET=your_app_secret FACEBOOK_PAGE_TOKEN=your_page_access_token

Commerce: Sell Digital Products

The simplest path: Gumroad

For a digital product (PDF guide, templates), Gumroad is the fastest way to start collecting money.

  1. Go to gumroad.com and create an account
  2. Create a new product
  3. Upload your PDF/files
  4. Set your price (or "pay what you want" with a minimum)
  5. Publish

Gumroad takes 10% + payment processing. For a $15-29 product it's the lowest-friction option.

Stripe for custom checkout

If you want a proper storefront integrated into your website:

  1. Go to stripe.com and create an account
  2. Get your API keys (dashboard → Developers → API keys)
  3. Create a product and price in Stripe dashboard
  4. Use Stripe Payment Links for a zero-code checkout page

Newsletter: Substack

For building an audience that converts to product sales:

  1. substack.com → Create publication
  2. Set up paid tier (minimum $5/month or $30/year)
  3. Your AI can draft newsletters — you approve and send

The Recommended Stack

Purpose Tool Why
Digital product sales Gumroad Zero setup, instant payments
Custom checkout Stripe More control, lower fees at scale
Newsletter Substack Built-in audience, paid tier
Website Vercel/Netlify Free hosting for static sites
Domain Cloudflare Cheapest registrar, free DNS
Social (primary) X/Twitter AI/tech audience concentrated here

The Posting Workflow

With social media connected, the workflow is:

  1. Your AI drafts content based on what you're building
  2. It queues the draft to APPROVAL_QUEUE.md
  3. It notifies you on Telegram with the draft
  4. You reply APPROVE or suggest edits
  5. It posts via the appropriate skill
  6. It logs the post to memory for future reference

This means you always have a human in the loop, but the AI does all the work of drafting, formatting, and scheduling.