Back to Autogpt

Publish to Medium

docs/integrations/block-integrations/medium.md

0.6.442.3 KB
Original Source

Publish to Medium

What it is

The Publish to Medium block is a tool that enables direct publication of content to the Medium platform from within an automated workflow.

What it does

This block takes a fully formatted blog post, along with associated metadata, and publishes it to Medium using the platform's API. It handles all aspects of the publication process, including setting the title, content, tags, and other post-specific details.

How it works

The block uses the provided Medium API key and author ID to authenticate with the Medium platform. It then constructs an API request containing all the post details and sends it to Medium's servers. After the post is published, the block retrieves and returns relevant information about the newly created post, such as its unique ID and public URL.

Inputs

InputDescription
Author IDThe unique identifier for the Medium author account
TitleThe headline of the Medium post
ContentThe main body of the post (in HTML or Markdown format)
Content FormatSpecifies whether the content is in 'html' or 'markdown' format
TagsUp to 5 topic tags to categorize the post (comma-separated)
Canonical URLThe original URL if the content was first published elsewhere
Publish StatusSets the post visibility: 'public', 'draft', or 'unlisted'
LicenseThe copyright license for the post (default: 'all-rights-reserved')
Notify FollowersBoolean flag to notify the author's followers about the new post
API KeyThe Medium API key for authentication

Outputs

OutputDescription
Post IDThe unique identifier assigned to the published post by Medium
Post URLThe public web address where the post can be viewed
Published AtThe timestamp indicating when the post was published
ErrorAny error message returned if the publication process fails

Possible use case

A digital marketing team could integrate this block into their content management system to streamline their cross-platform publishing strategy. After creating and approving a blog post in their main system, they could use this block to automatically publish the content to Medium, ensuring consistent and timely distribution across multiple platforms without manual intervention.