This topic was automatically generated from Slack. You can find the original thread here.
I noticed PipeDream uses a Slack/Discourse integration. Is it open source? I’m interested in adding it to other Slacks
This topic was automatically generated from Slack. You can find the original thread here.
I noticed PipeDream uses a Slack/Discourse integration. Is it open source? I’m interested in adding it to other Slacks
, you can find all code for actions/source from this repository here: GitHub - PipedreamHQ/pipedream: Connect APIs, remarkably fast. Free for developers.
Though I’m not sure what is your usecase, would you mind elaborate?
Having the ability to sync Slack messages/threads to Discourse as Posts is interesting, I wanted to have a deeper look Thanks
I see, the workflow to sync message is not open source. Though I think you can build a workflow for that usecase yourself.
You can refer to Pipedream University series to understand how to work with Pipedream
Ah, too bad, I’m pretty sure many people would be interested! Maybe that’s a way to spread the good word about Pipedream, by making this particular integration accessible for many? Just a thought.
Thanks for the suggestion , actually it’s quite easy to build that workflow. Pipedream also has a really powerful bot that can help you on that:
@U05A7KLNALC I want to create a post on Discourse for every Slack thread, each message in the Slack thread should be added as a post in that Discourse post. How can I build a workflow for this usecase?
To build a workflow for this use case, you can follow these steps: 1. First, you’ll need a trigger for your workflow. You can use the “New Message In Channels (Instant)” trigger from the Slack app. This will trigger the workflow whenever there’s a new message in the specified channels. You can find more information on this trigger here: https://pipedream.com/apps/slack/triggers/new-message-in-channels 2. Next, you’ll need to check if the message is part of a thread. You can do this by checking if the thread_ts
property exists in the message event. 3. If the message is part of a thread, you can fetch all messages in the thread using the Slack API’s conversations.replies
method. You can find more information on this method here: conversations.replies method | Slack 4. Once you have all the messages in the thread, you can create a new Discourse topic using the “Create Topic” action from the Discourse app. You can find more information on this action here: https://pipedream.com/apps/discourse/actions/create-topic 5. Finally, for each message in the Slack thread, create a post in the Discourse topic using the “Create Post” action from the Discourse app. You can find more information on this action here: https://pipedream.com/apps/discourse/actions/create-post Remember to connect your Slack and Discourse accounts to Pipedream before using their respective triggers and actions.