DYI: Repost Automation

DYI: Repost Automation
Photo by Kevin Jarrett / Unsplash

For a while, we used Zappier to automate post announcements on social networks. However, service and application providers interpret "always" differently than we, mere consumers, do. Drifting service terms, plans, and APIs led me to say, "Now, it's DIY time."

Any project, big or small, starts with planning and preparation. But even before that, you should have your goal set or, in Agile terms, have a clear "Definition of done." In this case, it is not a long one:

🎯
The integration system will automatically repost blog content to major social networks (Facebook, Twitter, LinkedIn) with customizable scheduling and content, ensuring cost-efficiency by operating free of charge or on the lowest available plan.

With that definition, I extensively researched the major automation and integration services to find the right balance between cost, complexity, and preconfigured adaptors. The finalist in this research is WebMethods.io Integration, provided by Sofware AG. The main reasons are:

  • The service offers a "Free forever" plan with a limited number of "transactions" per month. I will monitor consumption for a while, but we should be good even with the post/day rate.
  • WebMethods.io Integration offers a wide range of preconfigured technology and application connectors.
  • What is more important, it offers standard RESTful, SOAP, and other technology connectors.
  • It supports most of the authentication and authorization protocols.
  • It offers an extensive library of message transformations.
  • If your integration requires some complex processing, it offers customer-code operations based on Node.JS for deep customization.

The screenshot below depicts the current state of the integration workflow.

Chronicler.tech Social Network Publicator.
  1. When a new post is published on this site, the Ghost blog engine sends a message to the integration using the integration service endpoint with the mutual API key validations.
  2. The message goes through a transformer, which converts the list of tags into a comma-separated hashtag string.
  3. TinyURL adapter shortens the post URL.
  4. Social network connectors publish announcements and use my API credentials and OAuth-based authentications. LinkedIn comes out of the box. WebMethods offers a Twitter connector but does not work well with X.
  5. On success, the last step logs adapter responses and terminates execution.
  6. The Global Error Handler logs errors to the dashboard for further examination and notifications.

I'm compiling a few additional posts about Webmethods.io Integration and how to create simple yet useful workflows.