Node-Red is a low code, visual programming tool. For this project, I use it as duck tape to connect Ghost, Discord, and Outline together.
You can use the json files here to import these into Node-Red.
- node-red-contrib-turndown Convert HTML to Markdown
- node-red-discord-advanced Interact with Discord
- node-red-contrib-chatgpt Access OpenAI tools
- node-red-ratelimit Rate limit
Get an auth cookie to access the Ghost API, then save it in the Node-Red flow context.
Push Ghost posts to Discord. A webhook is configured in the Ghost settings to send posts to the HTTP receiver node in Node-Red, where it is reformatted as a Discord embed.
Output:Discord node listens for /lore
command prints the first result from Outline search. Includes backlinks, an image attachment, and ChatGPT flavor.
Synchronize RSVP roles from Discord to corresponding email newsletters in Ghost.
Need to clean this up before posting. There has to be some way to map Discord ID to the Ghost ID, which I'm currently doing in a Google Spreadsheet...