Last updated
Last updated
To set up your assistant's Twitter integration, you'll need the following:
A Twitter account linked to a phone number.
Access the Twitter developer console.
Click 'Sign Up' to register as a developer. Enter the information requested.
Then access the project created in the Projects & Apps section, by default it will be created with the name 'Project 1'.
In the Apps module click on the 'App settings' button.
Configure the authentication option in the section User authentication settings.
Activate Oauth 1.0a and select 'Read and write Direct Message'.
Copy the URL that you will find in the integration options and paste it in 'Callback URI/Redirect URL'.
Enter your website and save the changes.
Go back to the project created in the Projects & Apps section and in the Apps section click on the 'Keys & tokens' button.
Generates the 'Api Key and Secret' and 'Access Token and Secret' tokens. Copy each of them to use later in the integration.
You need to request higher permissions to set up a development environment.
The form will ask you for a detailed description (200 characters) of what the API will be used for. For example: "The access to the API will be used to activate the webhook that connects a chatbot with the direct messages of the Twitter account. When a user sends a question as a direct message, they will receive an automatic response that resolves their question."
In the form, activate the option of the question 'Will your App use Tweet, Retweet, Like, Follow or Direct Message functionality?' and describes: "When a user sends a question as a direct message, they will receive an automatic response that resolves their question."
Submit the request.
After approval, go to the Products > Premium > Dev Environments menu section.
Enable the 'Account Activity API' option.
Enter a name in the 'Dev environment label' (copy this name for later use in the integration) and link it to the App you initially created.
Importante: Your application may be automatically approved or you may have to wait for a while.
Save the settings.
Done!🎉 Run tests to verify the operation of your assistant on Twitter.
Maximum 1000 messages per day.
Each message received from a user can have a maximum of 5 responses from the bot (Upon receiving another new message from the user, another 5 messages can be sent).
The maximum characters per message is 10,000.
Maximum 20 text buttons in each message.
The maximum number of characters for the button text is 36.
Access the main page of the project and click on 'Apply' that appears after the question 'Do you need Elevated access for your Project?'.
In the Twitter integration module, enter all the data that you previously copied.