Twitter

Set up

To set up your assistant's Twitter integration, you'll need the following:

  • A Twitter account linked to a phone number.

Create a Twitter app

  1. Click 'Sign Up' to register as a developer. Enter the information requested.

  2. Then access the project created in the Projects & Apps section, by default it will be created with the name 'Project 1'.

  3. Activate Oauth 1.0a and select 'Read and write Direct Message'.

Set permissions

You need to request higher permissions to set up a development environment.

  1. 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."

  2. 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."

  3. Submit the request.

  4. After approval, go to the Products > Premium > Dev Environments menu section.

  5. Enable the 'Account Activity API' option.

  6. 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.

Activate integration

  1. Save the settings.

  2. Done!🎉 Run tests to verify the operation of your assistant on Twitter.

Limitations

  • 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.

Last updated