n8n Configuration Guide 14: How to Configure X (formerly Twitter) Node

10 months ago

In n8n, you can configure X to enable automatic reading and sending of tweets.

This guide explains how to configure the relevant details for X.

https://appstore.lazycat.cloud/#/shop/detail/cloud.lazycat.app.n8n

1. Create a New Workflow

First, create a new workflow.

image.png

For the trigger, simply select "Manual Trigger".

image.png

Add an X node.

image.png

Select "Create Tweet". image.png

Credentials need to be created here.

image.png

You can copy this URL first; it will be needed later.

image.png

2. Check the API Documentation

The official configuration documentation is here. It's in English by default; you can use immersive translation to view it in Chinese.

image.png

According to the documentation, you first need to go to the X developer account and apply for access.

For the application reason, you can have AI generate one for you; it's best to fill it out in English. Check all these boxes.

image.png

Next, create a project to apply for a Client ID and Secret Key.

On the "Overview" tab of your project, find the "Apps" section and select "Add App". This is the page after I created it.

image.png

Enter the app's settings interface.

image.png

In User authentication, click "Set up" to install.

image.png

Here, I gave it the highest permissions. For "Type of App", select the bottom option.

image.png

In the "App info" section, you need to fill in several URLs.

image.png

The Callback URI here is the URL we copied in Step 1. Enter your website URL; you can fill in any valid one.

image.png

At this point, the Client ID and Secret will be generated. Note: save the secret key locally to prevent loss.

Copy and paste them into the n8n fields.

image.png

Click "Connect Account".

image.png

Authorize the app.

image.png

In n8n, you can see the connection was successful:

image.png

Let's test it by sending a "Hello Lazy Cat".

image.png

You can see the output result.

image.png

You can see it in my feed.

image.png

The above covers the configuration for X in n8n. Next, you can use it to do some interesting things, such as automatically scheduling tweets. Stay tuned for my future guides.

Author
天天