Blog: Sample Use Cases & Flows

This article presents possible use cases and corresponding sample flows that you can support. This can be a helpful jumping off point as you plan your implementation.

Periodically send an email with latest posts to blog subscribers

Notify a blog's subscribers about new posts.

  1. Call Query Posts and filter for recent posts.
Copy
  1. Extract the following data from the post payload:

    • title
    • excerpt
    • url
  2. Create a templatized email with the extracted information and send to subscribers.

Send out a social media post when a new blog post is marked as featured

Market a blog by creating a post on social media with featured blog content. This flow relies on having permission to access the relevant social media accounts.

  1. When the Post Created event is triggered, you'll receive the post in the response.

  2. Extract the entityId and use it to call Get Post. Check to see whether the post has been marked as featured.

  3. If featured is set to true, extract desired fields from the Get Post response for the social media post. For example, you may want a social media post to include the following information:

    • title
    • url
    • excerpt
    • minutesToRead
    • media
  4. Create a social media post to include the desired data, then post it to social media.

Did this help?