Install
openclaw skills install hotel-social-automatorGenerate, review, and publish social media content through MCP with AgentAuth and workspace token authentication.
openclaw skills install hotel-social-automatorCalls MCP tools to generate, review, and publish social media content.
| Dependency | Purpose | Required |
|---|---|---|
mcporter CLI | Invoke MCP server tools | Yes |
curl | Download images from URLs | Yes |
feishu-send at /usr/local/bin/feishu-send | Send Feishu notifications | No (only if Feishu notifications needed) |
Write access to /root/.openclaw/workspace/ | Store temporary images | Yes |
Note: If feishu-send is not available, the skill will still function but cannot send notifications via Feishu.
This skill requires dual-token MCP authentication:
Authorization: Bearer hp_sk_*X-Agent-User-Key: uk_*Users must:
uk_*hp_sk_*Full user onboarding guide:
references/user-onboarding.mdMCP server must be configured in your agent's MCP settings:
{
"mcpServers": {
"hotelpost": {
"type": "streamable-http",
"url": "https://mcp.example.com/api/mcp",
"headers": {
"Authorization": "Bearer <API_KEY>",
"X-Agent-User-Key": "<AGENTAUTH_USER_KEY>"
}
}
}
}
Required credentials:
hp_sk_xxxxxxxxuk_xxxxxxxxhp_sk_* plus user uk_*Content generation consumes credits:
If credit quota is exceeded, the tool returns AIQuotaExceededError. Ensure sufficient credits before generating content. Credits can be managed in the HotelPost Web admin panel.
This skill uses the HotelPost API key to resolve the target workspace and uses X-Agent-User-Key to verify the calling user. Both are required, and all operations remain scoped to the workspace bound to the hp_sk_* key.
Must use mcporter to call MCP server tools — do NOT use exec/curl!
Correct usage:
mcporter call hotelpost.<tool_name> <parameters>
Examples:
mcporter call hotelpost.list_scenarios — List marketing scenariosmcporter call hotelpost.generate_content scenarioId=scenario_demo_001 — Generate contentmcporter call hotelpost.get_drafts draftId=draft_demo_001 — Get draft detailsForbidden: using exec/curl to access MCP API directly. Must use mcporter!
MCP server name is hotelpost. Server URL and both auth headers must be configured as described above.
For full user-side setup, token acquisition, and troubleshooting:
references/user-onboarding.mdlist_scenarios → generate_content → get_drafts (polling) → [regenerate_draft] → publish_post / schedule_post
list_scenarios, display available scenarios, let user choosegenerate_content(scenarioId, language), submit async generation taskget_drafts(scenarioId), wait for status to change from GENERATING to ACTIVE (usually 15-30 seconds)get_drafts(draftId) to view full content and images; use regenerate_draft(draftId, feedback) to modifylist_connections first to confirm available accounts, then call publish_post or schedule_postget_post_status(draftId) to confirm publishing result| Tool | Purpose | Key Parameters |
|---|---|---|
list_scenarios | List marketing scenarios | none |
generate_content | Generate draft based on scenario | scenarioId, language? |
get_drafts | Query draft status/details | scenarioId or draftId |
regenerate_draft | Regenerate with feedback, supports language/platform | draftId, feedback?, language?, platform? |
list_connections | List bound social media accounts | none |
publish_post | Publish immediately | draftId, connectionIds[] |
schedule_post | Schedule for later | draftId, connectionIds[], scheduledAt |
list_posts | List posts | status?, page?, pageSize? |
get_post_status | Get publishing status | postId or draftId |
zh — Chinese (default)en — Englishth — Thaims — Malayja — Japanesex — X (Twitter)facebook — Facebookinstagram — Instagramlinkedin — LinkedInSCHEDULED — Scheduled postsPUBLISHING — Currently publishingPUBLISHED — Successfully publishedPARTIAL_SUCCESS — Partially succeededFAILED — Failedget_drafts(scenarioId) response includes image URLs in the draft list. Do NOT call get_drafts(draftId) again to fetch URLs — use the URLs directly from the first call to save time.& (curl -o "1.png" url1 & curl -o "2.png" url2 & wait)list_scenarios.generate_content returns, you MUST poll get_drafts at 10-15 second intervals, up to 3 times.list_connections to get connectionId.language defaults to zh (Chinese). Pass en when user requests English.regenerate_draft with feedback.regenerate_draft supports specifying language (zh/en/th/ms/ja) and platform (x/facebook/instagram/linkedin). If not specified, regenerates for all platforms./root/.openclaw/workspace/ directory exists before downloadinghotelpost_xxx.png
Before downloading images, ensure the workspace directory exists:
mkdir -p /root/.openclaw/workspace/
After publishing, send notifications via the appropriate IM platform. See the platform-specific guide in references/:
feishu-guide.md — Feishu platform sending guide (card/image format, ID selection rules)Note: Feishu notification is optional. The skill functions without it, but users won't receive push notifications.
See references/conversation-examples.md
See references/error-handling.md