Skip to main content

Content Publishing & Scheduling

This example demonstrates a simple workflow to publish and schedule content to social media platforms using the MCP server.

Basic Workflow

Implementation Steps

To implement content publishing functionality, follow these simple steps:
  1. Get Users: Use get-users-by-tenant-app to retrieve all users
  2. Get User Accounts: Use get-user-accounts with the selected user’s ID to retrieve their connected social media accounts
  3. View Profile Details (Optional): Use fetch-profiles with the account ID to get profile information
  4. Publish Content: Use publish-content with the account ID, content type, format, media URL, and title to post immediately
  5. Schedule Content: Use publish-content with the additional scheduled_for parameter to schedule posts for the future (must be at least 10 minutes ahead)

Content Types and Formats

When publishing content, specify the appropriate type and format:

Required MCP Tools

This implementation uses these tools:
  • get-users-by-tenant-app - Lists all users
  • get-user-accounts - Lists user’s social media accounts
  • fetch-profiles - Gets detailed profile information
  • publish-content - Publishes or schedules content to social platforms

Prompt Engineering Tips

When designing prompts for your AI assistant to handle content publishing requests, consider:
  1. Multi-turn conversations - Break down the content creation process into steps
  2. Platform-specific guidance - Suggest optimal content formats for each platform
  3. Preview capabilities - Allow users to visualize how posts will appear before publishing
  4. Scheduling options - Support both immediate posting and future scheduling
  5. Error handling - Provide clear feedback if there are issues with publishing

Advanced Features

To enhance this capability, consider implementing:
  • Content optimization suggestions - Recommend hashtags, image sizes, or text length adjustments
  • Cross-platform content adaptation - Automatically adjust content to match platform-specific requirements
  • Engagement time optimization - Suggest optimal posting times based on audience engagement patterns
  • Content series scheduling - Allow users to schedule multiple related posts as a campaign
  • Draft saving - Let users save content ideas as drafts for later refinement and posting