> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://staging.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/-/8/b/6/b/8b6bb26938208800/5d9e3eea-c882-4a0f-9473-cac1d4_1ccypvb.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/b/c/0/abc06a1f02780800/9cc8457f-dba3-431a-9258-11eae4_16dbboq.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/-/7/7/f/3/77f367efb1ef8800/ffb9d3ca-49d1-4d77-a6ac-1d2f20_1rv3i1l.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/)