Skills media.hotelmind
Generate, review, and publish social media content through MCP with AgentAuth and workspace token authentication.
git clone https://github.com/openclaw/skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/3dwitch/hotel-asset-marketer" ~/.claude/skills/clawdbot-skills-media-hotelmind && rm -rf "$T"
skills/3dwitch/hotel-asset-marketer/SKILL.mdmedia.hotelmind
Calls MCP tools to generate, review, and publish social media content.
Prerequisites
Required Environment
| Dependency | Purpose | Required |
|---|---|---|
CLI | Invoke MCP server tools | Yes |
| Download images from URLs | Yes |
at | Send Feishu notifications | No (only if Feishu notifications needed) |
Write access to | Store temporary images | Yes |
Note: If
feishu-send is not available, the skill will still function but cannot send notifications via Feishu.
Required Configuration
This skill requires dual-token MCP authentication:
Authorization: Bearer hp_sk_*X-Agent-User-Key: uk_*
Users must:
- Sign in to AgentAuth and copy a
uk_* - Sign in to HotelPost and create or copy a workspace
hp_sk_* - Put both tokens into the installed agent's MCP configuration
Full user onboarding guide:
references/user-onboarding.md
MCP 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:
- API Key: Obtain from HotelPost Web admin panel → Settings → API Keys. Format:
hp_sk_xxxxxxxx - AgentAuth User Key: Obtain from AgentAuth Dashboard after user login. Format:
uk_xxxxxxxx - MCP now requires both tokens together: workspace
plus userhp_sk_*uk_*
Credit System
Content generation consumes credits:
- Each draft generation (up to 4 candidates) costs 40 credits
- Each regeneration costs 10 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.
Multi-Tenant Isolation
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.
Tool Invocation
Must use mcporter to call MCP server tools — do NOT use exec/curl!
Correct usage:
mcporter call hotelpost.<tool_name> <parameters>
Examples:
— List marketing scenariosmcporter call hotelpost.list_scenarios
— Generate contentmcporter call hotelpost.generate_content scenarioId=scenario_demo_001
— Get draft detailsmcporter call hotelpost.get_drafts draftId=draft_demo_001
Forbidden: using exec/curl to access MCP API directly. Must use mcporter!
MCP Server Configuration
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.md
When to Activate
- User asks to generate social media posts or publish content
- User asks to browse or select marketing scenarios
- User asks to manage, view, or modify drafts
- User asks to check publishing status or post list
- User mentions HotelPost, hotel marketing, or social media publishing
- User asks to schedule posts
- Keywords: hotel, social media, post, publish, draft, marketing scenario, Instagram, X, Facebook, LinkedIn
Core Flow
list_scenarios → generate_content → get_drafts (polling) → [regenerate_draft] → publish_post / schedule_post
Step-by-Step
- Select Scenario — Call
, display available scenarios, let user chooselist_scenarios - Generate Content — Call
, submit async generation taskgenerate_content(scenarioId, language) - Poll Drafts — Call
, wait for status to change from GENERATING to ACTIVE (usually 15-30 seconds)get_drafts(scenarioId) - View/Modify — Call
to view full content and images; useget_drafts(draftId)
to modifyregenerate_draft(draftId, feedback) - Publish — Call
first to confirm available accounts, then calllist_connections
orpublish_postschedule_post - Check Status — Call
to confirm publishing resultget_post_status(draftId)
Tool Reference
| Tool | Purpose | Key Parameters |
|---|---|---|
| List marketing scenarios | none |
| Generate draft based on scenario | , |
| Query draft status/details | or |
| Regenerate with feedback, supports language/platform | , , , |
| List bound social media accounts | none |
| Publish immediately | , |
| Schedule for later | , , |
| List posts | , , |
| Get publishing status | or |
regenerate_draft Language Options
— Chinese (default)zh
— Englishen
— Thaith
— Malayms
— Japaneseja
regenerate_draft Platform Options
— X (Twitter)xfacebookinstagramlinkedin
list_posts Status Options
— Scheduled postsSCHEDULED
— Currently publishingPUBLISHING
— Successfully publishedPUBLISHED
— Partially succeededPARTIAL_SUCCESS
— FailedFAILED
Important Rules
Information Display
- Do NOT expose internal info to users: Cards should NOT contain draft IDs, internal numbers, etc. Only show content and images the user needs to see.
Performance Optimization
- Image URL optimization: The first
response includes image URLs in the draft list. Do NOT callget_drafts(scenarioId)
again to fetch URLs — use the URLs directly from the first call to save time.get_drafts(draftId) - Parallel processing:
- Download images in parallel with
(&
)curl -o "1.png" url1 & curl -o "2.png" url2 & wait - Send multiple images in parallel (with rate limiting, 3-5 at a time recommended)
- Avoid serial operations; parallelize whenever possible
- Download images in parallel with
Send Order
- Send content first, wait, then send images. Do not send all content at once followed by images — users cannot correlate them.
General Rules
- Must select a scenario before generating. Do NOT skip
.list_scenarios - Generation is async. After
returns, you MUST pollgenerate_content
at 10-15 second intervals, up to 3 times.get_drafts - Drafts include image assets. No need for users to provide images.
- Before publishing, must confirm account by calling
to get connectionId.list_connections - If user says "post to Instagram", find INSTAGRAM platform ID from connections.
defaults tolanguage
(Chinese). Passzh
when user requests English.en- If user is not satisfied with draft, use
with feedback.regenerate_draft
supports specifyingregenerate_draft
(zh/en/th/ms/ja) andlanguage
(x/facebook/instagram/linkedin). If not specified, regenerates for all platforms.platform
Image Handling
- Ensure
directory exists before downloading/root/.openclaw/workspace/ - Download images with random filenames like
hotelpost_xxx.png- Do NOT save to /tmp/ — some platforms don't support it
- Image URLs must include full signature parameters! Truncated URLs will be inaccessible.
- Clean up temporary files after sending.
Workspace Directory
Before downloading images, ensure the workspace directory exists:
mkdir -p /root/.openclaw/workspace/
Platform Publishing
After publishing, send notifications via the appropriate IM platform. See the platform-specific guide in
references/:
— Feishu platform sending guide (card/image format, ID selection rules)feishu-guide.md
Note: Feishu notification is optional. The skill functions without it, but users won't receive push notifications.
Conversation Examples
See
references/conversation-examples.md
Error Handling
See
references/error-handling.md