> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.chrisp.chat/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to integrate Crisp with X (Twitter)?

****Here is how to integrate Crisp with Twitter, so you can receive direct messages from Twitter and reply from Crisp.****

| Twitter integration is available from the Crisp Mini plan

||| ⚠️ Before you continue: This integration requires you to be on the Twitter Enterprise plan. If you do not have this plan on Twitter the integration will not work.

# 1. Create your Twitter Project & Twitter App

* Go to your [Developers portal](https://developer.twitter.com/en/portal/dashboard) dashboard
* Click "Create Project"
* Give your Project a name
* Select "Making a bot" for the use case
* Give your project a description and you will be redirected to create an App
* Give your app a name
* Copy the generated ****API Key**** , ****Api Secret Key**** and Bearer Token

# 2. Allow messaging permissions

* Go to the __Settings__ tab of your App
* Under the __User authentication settings__ section, click __Setup__
* Enable the option __OAuth 1.0a__
* Under __App permissions__ select ****Read + Write + Direct Messages****
* Add your website URL in __Callback URI / Redirect URL__ and __Website URL__ , add your __Terms of service URL__ and __Privacy policy__ , then click Save

![Twitter App Permissions](https://storage.crisp.chat/users/helpdesk/website/-/d/f/7/8/df78ce636cc0c000/f113b8e5-1ecd-4df5-a75e-c291cf_q61q0g.png)

# 3. Generate Access credentials

* Go the the __Key and tokens__ tab of your App
* In the __Access Token and Secret__ section, click on __Generate__
* Copy the generated Access Token and Access Token Secret

![Twitter Access](https://storage.crisp.chat/users/helpdesk/website/-/a/e/5/d/ae5dcc979b3b6000/a1db0058-4047-49b3-ad6f-b35e6f_zd3b70.png)

# 4. Apply for the Elevated plan

* Go to [Twitter API v2](https://developer.twitter.com/en/portal/products) under __Products__
* Click on the __Elevated__ tab and apply for Elevated
* Fill in the details to apply for the Elevated plan
* Under __The Specifics__ ****only**** enable __"Will your App use Tweet, Retweet, Like, Follow, or Direct Message functionality?"__ and describe that you will use the Direct message feature for customer support
* Wait for your Approval from Twitter

# 5. Set up the Account Activity API

* Once approved, go to [Dev environments](https://developer.twitter.com/en/account/environments)
* In __Account Activity API / Sandbox__ , click on __Set up dev environment__
* Give it a name, and select your App created in Step 1

![Twitter Account Activity API](https://storage.crisp.chat/users/helpdesk/website/-/e/0/a/3/e0a32642cdae8800/5ec0b374-05f9-4f36-876c-3e605a_3apgim.png)

# 6. Link Crisp with Twitter

* Go to [app.crisp.chat](https://app.crisp.chat)
* Navigate to __Plugins__
* Click on Twitter DM
* Fill the Twitter credentials from Step 1
* Save the credentials

|| Note that the video below was created before the Twitter Developers portal changed. The steps are similar in most cases with the addition of needing to apply to the [Elevated Plan](https://help.crisp.chat/en/article/how-to-integrate-crisp-with-twitter-1t4iyr1/?bust=1651651279861#1-4-apply-for-the-elevated-plan)

${frame}[](https://www.youtube.com/embed/jLl6ZlaE14I?rel=0)

## Troubleshooting

#### I don't receive messages on Crisp

1. Twitter is known to have sometimes issues on the Tokens. What we suggest in the first place if you don't receive messages from Twitter on Crisp is to ****renew your all the Twitter API Tokens**** on [https://developer.twitter.com](https://developer.twitter.com)
2. Please ensure your OAuth permissions are set to ****Read + Write + Direct Messages****
3. Check if your ****Account Activity API**** dev environment is properly configured
4. Check that you do not have the ****"Filter low-quality messages"**** enabled in your Twitter inbox. You can disable this by navigating to your Twitter Messages > Settings > Enable ****"Allow messages requests from everyone"**** > Disable ****"Filter low-quality messages"****

****Want to know more about Twitter Integration? Get a clear view of our**** [**social inbox for customer service**](https://crisp.chat/en/shared-inbox/social-messaging/)