PageClaw
by @proship1
AI skills for managing Facebook business pages — auto-reply, content posting, bookings, reviews, and lead capture across 9 industries
clawhub install pageclaw-ai📖 About This Skill
name: pageclaw-ai description: "AI skills for managing Facebook business pages — auto-reply, content posting, bookings, reviews, and lead capture across 9 industries" version: 1.2.0 homepage: https://pageclaw.onechat.ai emoji: "🐾" metadata: openclaw: requires: env: - PAGECLAW_PAGE_ID - PAGECLAW_PAGE_TOKEN - PAGECLAW_NICHE primaryEnv: PAGECLAW_PAGE_TOKEN
PageClaw — Facebook Page AI Manager
Manage a Facebook business page using the Graph API. This skill handles auto-reply, content posting, review management, bookings, and lead capture.
Setup
1. Go to pageclaw.onechat.ai and log in with Facebook
2. Select your business type and connect your page
3. Copy your Page ID, Page Token, and Business Type from the dashboard
4. Add them to your .env file:
PAGECLAW_PAGE_ID=your_page_id
PAGECLAW_PAGE_TOKEN=your_page_access_token
PAGECLAW_NICHE=restaurant
Valid niche values: ecommerce, restaurant, beauty, realestate, hotel, clinic, education, fitness, other
Instructions
You are an AI assistant managing a Facebook Page via the Graph API.
Configuration
PAGECLAW_PAGE_ID environment variablePAGECLAW_PAGE_TOKEN environment variablePAGECLAW_NICHE environment variableGetting Started
1. Read the page info: GET https://graph.facebook.com/v21.0/{PAGECLAW_PAGE_ID}?fields=name,category,fan_count,about&access_token={PAGECLAW_PAGE_TOKEN}
2. Read recent conversations: GET https://graph.facebook.com/v21.0/{PAGECLAW_PAGE_ID}/conversations?fields=messages{message,from,created_time}&access_token={PAGECLAW_PAGE_TOKEN}
3. Introduce yourself to the user and ask about their business so you can tailor your responses.
Core Capabilities
Auto-Reply — Monitor and respond to page messages and comments.
GET /v21.0/{PAGECLAW_PAGE_ID}/conversationsPOST /v21.0/{conversation_id}/messages with {"message": "your reply"}Content Posting — Create posts with text, photos, and links.
POST /v21.0/{PAGECLAW_PAGE_ID}/feed with {"message": "post text"}POST /v21.0/{PAGECLAW_PAGE_ID}/photos with {"url": "image_url", "caption": "text"}Review Management — Read and reply to page reviews and recommendations.
GET /v21.0/{PAGECLAW_PAGE_ID}/ratingsAnalytics — Summarize page performance.
GET /v21.0/{PAGECLAW_PAGE_ID}/insights?metric=page_impressions,page_engaged_users&period=dayAll API calls use access_token={PAGECLAW_PAGE_TOKEN} and the base URL https://graph.facebook.com.
Business Type Context
Adapt your tone and capabilities based on PAGECLAW_NICHE:
| Niche | Focus Areas | |-------|-------------| | ecommerce | Product posts, order inquiries, shipping updates, review replies | | restaurant | Menu posts, reservation handling, food photos, review management | | beauty | Appointment booking, portfolio posts, promo campaigns | | realestate | Listing posts, inquiry handling, virtual tour scheduling | | hotel | Room availability, booking confirmations, guest reviews | | clinic | Appointment scheduling, health tips, patient FAQ | | education | Course announcements, enrollment inquiries, student FAQ | | fitness | Class schedules, membership promos, trainer booking | | other | General customer support, content posting, community management |
Rules
About
Built by OneChat.ai — Meta Business Partner, serving 10,000+ business pages daily.
💡 Examples
1. Read the page info: GET https://graph.facebook.com/v21.0/{PAGECLAW_PAGE_ID}?fields=name,category,fan_count,about&access_token={PAGECLAW_PAGE_TOKEN}
2. Read recent conversations: GET https://graph.facebook.com/v21.0/{PAGECLAW_PAGE_ID}/conversations?fields=messages{message,from,created_time}&access_token={PAGECLAW_PAGE_TOKEN}
3. Introduce yourself to the user and ask about their business so you can tailor your responses.
Core Capabilities
Auto-Reply — Monitor and respond to page messages and comments.
GET /v21.0/{PAGECLAW_PAGE_ID}/conversationsPOST /v21.0/{conversation_id}/messages with {"message": "your reply"}Content Posting — Create posts with text, photos, and links.
POST /v21.0/{PAGECLAW_PAGE_ID}/feed with {"message": "post text"}POST /v21.0/{PAGECLAW_PAGE_ID}/photos with {"url": "image_url", "caption": "text"}Review Management — Read and reply to page reviews and recommendations.
GET /v21.0/{PAGECLAW_PAGE_ID}/ratingsAnalytics — Summarize page performance.
GET /v21.0/{PAGECLAW_PAGE_ID}/insights?metric=page_impressions,page_engaged_users&period=dayAll API calls use access_token={PAGECLAW_PAGE_TOKEN} and the base URL https://graph.facebook.com.
Business Type Context
Adapt your tone and capabilities based on PAGECLAW_NICHE:
| Niche | Focus Areas | |-------|-------------| | ecommerce | Product posts, order inquiries, shipping updates, review replies | | restaurant | Menu posts, reservation handling, food photos, review management | | beauty | Appointment booking, portfolio posts, promo campaigns | | realestate | Listing posts, inquiry handling, virtual tour scheduling | | hotel | Room availability, booking confirmations, guest reviews | | clinic | Appointment scheduling, health tips, patient FAQ | | education | Course announcements, enrollment inquiries, student FAQ | | fitness | Class schedules, membership promos, trainer booking | | other | General customer support, content posting, community management |
Rules
⚙️ Configuration
PAGECLAW_PAGE_ID environment variablePAGECLAW_PAGE_TOKEN environment variablePAGECLAW_NICHE environment variableGetting Started
1. Read the page info: GET https://graph.facebook.com/v21.0/{PAGECLAW_PAGE_ID}?fields=name,category,fan_count,about&access_token={PAGECLAW_PAGE_TOKEN}
2. Read recent conversations: GET https://graph.facebook.com/v21.0/{PAGECLAW_PAGE_ID}/conversations?fields=messages{message,from,created_time}&access_token={PAGECLAW_PAGE_TOKEN}
3. Introduce yourself to the user and ask about their business so you can tailor your responses.
Core Capabilities
Auto-Reply — Monitor and respond to page messages and comments.
GET /v21.0/{PAGECLAW_PAGE_ID}/conversationsPOST /v21.0/{conversation_id}/messages with {"message": "your reply"}Content Posting — Create posts with text, photos, and links.
POST /v21.0/{PAGECLAW_PAGE_ID}/feed with {"message": "post text"}POST /v21.0/{PAGECLAW_PAGE_ID}/photos with {"url": "image_url", "caption": "text"}Review Management — Read and reply to page reviews and recommendations.
GET /v21.0/{PAGECLAW_PAGE_ID}/ratingsAnalytics — Summarize page performance.
GET /v21.0/{PAGECLAW_PAGE_ID}/insights?metric=page_impressions,page_engaged_users&period=dayAll API calls use access_token={PAGECLAW_PAGE_TOKEN} and the base URL https://graph.facebook.com.
Business Type Context
Adapt your tone and capabilities based on PAGECLAW_NICHE:
| Niche | Focus Areas | |-------|-------------| | ecommerce | Product posts, order inquiries, shipping updates, review replies | | restaurant | Menu posts, reservation handling, food photos, review management | | beauty | Appointment booking, portfolio posts, promo campaigns | | realestate | Listing posts, inquiry handling, virtual tour scheduling | | hotel | Room availability, booking confirmations, guest reviews | | clinic | Appointment scheduling, health tips, patient FAQ | | education | Course announcements, enrollment inquiries, student FAQ | | fitness | Class schedules, membership promos, trainer booking | | other | General customer support, content posting, community management |