DEV Community

Takashi Abe
Takashi Abe

Posted on

n8n Integrates Note, Obsidian, Dify, and SNS - Complete Overview of the Increasingly Chaotic Automation Workflow

Since I started integrating note and Obsidian with n8n, I was quite pleased that document generation was now consolidated in one place.

The structure from before has now become like this.

Lots of AI and lots of HTTP Requests

I am starting to lose track of what is happening where, but it looks something like this.

There are many places where I am doing things quite forcefully

When I post to note, the RSS feed is automatically triggered and this n8n workflow is executed.

Integration with Discord

This part is the most straightforward. It simply posts to Discord as a news article.

As for where it posts, it goes to a Discord that you can join through notes paid subscription Standard Plan (500 yen/month).

アーキテクト小屋|しょっさん

I want to create a place where we can casually discuss the ideal IT architect for surviving in the AI era, leveraging my experience at IBM and Salesforce

There are also technical articles posted as news, and you can pull information from a chatbot based on past note articles.

Logging into note

I log into note and forcibly obtain an access token.

The code is not really something I can show, but it has a fairly standard login mechanism. From there, the obtained JSON is formatted into the information needed for API access.

Retrieving/Formatting note Content

I format the information obtained from the RSS feed and combine it with the login information before retrieving the note content. In the past, I had no choice but to do it this way, so there is various unnecessary JavaScript scattered around, but I will gradually refactor this... when I update n8n to v2...

By the way, the reason I am logging in is so that I can also extract all paid content.

Registering to Dify Knowledge

Based on the extracted content information, I register it to Dify knowledge.

As described above, the knowledge accumulated in Dify can be queried through the chatbot in the Standard Plan Discord.

アーキテクト小屋|しょっさん

I want to create a place where we can casually discuss the ideal IT architect for surviving in the AI era, leveraging my experience at IBM and Salesforce

Generating Content Summary and a Comment

This is something I have been doing recently.
I take the content information, generate a summary and a Perfume-related comment from the content, and have it create a promotional article.

Promotion on Misskey

For now, the only place I am automatically promoting is Misskey.

しょっさん :verify: (@sho7650)

Wife 1, Daughters 4 - Person at Salesforce (Principal Technical Architect) Former infrastructure engi

It posts like this.

The summary and comment are longer than expected, so I cannot post it to Twitter as is

Recording to Obsidian

This summary and comment are also recorded in Obsidian.

Posting to dev.to if a Specific Hashtag Exists

It was quite a lot of work, but I made it so that it can also automatically post to dev.to due to its API integration and ease of posting. It translates to English before posting.

I did not want everything to be posted, so I made it controllable with hashtags.

For the API, refer to here.

Cross-Posting to Dev.to with API

Let us cross-post this blog post to Dev.to using its API.

This time it is more of an introduction, but once it is refined, I will explain each part in detail. It is interesting and convenient to be able to automatically execute things when something happens. It is fun.

Also, I am seriously thinking that it would probably be better to split it into separate functions for each implemented feature.

Top comments (0)