# Creating a Discourse plugin for n8n workflows

## Метаданные

- **Канал:** n8n
- **YouTube:** https://www.youtube.com/watch?v=b9lyFRyjX0Q
- **Дата:** 01.12.2021
- **Длительность:** 5:36
- **Просмотры:** 631

## Описание

David and Mutasem created a Discourse plugin to generate a screenshot of the workflow using the workflow code at Hackmation 0.4.

Hackmation is an internal company hackathon where we use n8n to automate our tasks or build low-code products.

#discourse #n8n #automation

## Содержание

### [0:00](https://www.youtube.com/watch?v=b9lyFRyjX0Q) Segment 1 (00:00 - 05:00)

everybody i want you to close your eyes and imagine that you are a novice m810 user oh i'm super excited about this amazing tool you don't really feel confident in it just yet and in fact you start doing a workflow and it's not really working you try and figure out you browse the forum and you don't quite find what you're looking for and you ask yourself is it post times notice there's a little tip here try pasting your energy into your post so you go and you get the word just paste it here no that's not the right one cool and then you're like um and what you can see is you have a preview of the workflow who has been fetched from 1000 magic servers and you also have the code like normal below just highlighted and also a little tip here which says that you know you can copy it and paste it into any engine because i think what happens very often if you if you're coming across an already answered question is that you know you have this thing saying hey here is like here's a workbook for you and then the original post is like thank you this is perfect it exactly solves my problem well that's just where the json i don't know what this means it's not exactly my problem and so we're just making it easier to copy it here and see what it does make it more obvious and also yeah just give me you know really beautiful work screenshots to hide some of the stuff at the little logo um so yeah it just runs transit it catches the image saves it to the instance it was supposed to upload it to s3 but last minute that didn't work on heroku's this would be nice also on the website i think for the workplace and um but it also works you know when people post in the post how does it know if it's a workflow and not just like i don't know some function called it basically analyzes the content so if you create a new post right you insert your basically what it does here is it looks for a line containing either a curly bracket or a square bracket and it then goes from the bottom of the content upwards and tries to pass the json and once it succeeds it's like okay this is json like it should have been put in there with backticks but you know so then what we just do is we like we analyze the json and if it has a node field and that node's field is a it's a list with certain attributes we say over here nice nice i think it's really cool how would i identify even if you don't put it in active yeah there's a lot of people i don't know what is that i can't wait to see this on there look for me yeah it hasn't stopped that so you know and thinks it's getting the response from an and i overreally getting it from it's like back together like intercepted requests that we're doing sure that's a fun little question so i know like in an editor now we have the like basically reframe canvas like zoom in we can be able to uh use that on this so it's used automatically yeah so you can see it yeah it's already any workflow that's loaded it's already

### [5:00](https://www.youtube.com/watch?v=b9lyFRyjX0Q&t=300s) Segment 2 (05:00 - 05:00)

then what we'd love to do we didn't have time is to instead of rendering an image render html so that you can go in here and click on these nodes and open this

---
*Источник: https://ekstraktznaniy.ru/video/15758*