Bhargavi Chinnappa
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    ## Twitter Twitter is a social media platform that allows you to post tweets in the form of text messages, images, videos, and links. Twitter integration helps in promoting your brand, create mentions related to customer queries. In this article, you will learn: * [How to create a Twitter account](#account) * [How to setup a Twitter channel using the Developer portal](#developer) * [How to connect a Twitter channel to your bot](#3-connect-line-channel-to-your-bot) * [How to test your bot on Twitter channel](#test) ## 1. Create a Twitter account 1. Navigate to the [Twitter website](https://twitter.com/i/flow/signup) and click **Create account**. 2. Enter the required information, such as your name, email, date of birth, and click **Next**. <img src="https://i.imgur.com/awiGWBi.png" alt="drawing" width="60%"/> 3. In the **Customize your experience** pop-up box, check the highlighted box to allow tracking your browsing history or uncheck the box to disable it. Click on **Next**. <img src="https://i.imgur.com/lKczbUt.png" alt="drawing" width="60%"/> 4. Verify your information and click **Sign up**. <img src="https://i.imgur.com/dwczCO8.png" alt="drawing" width="60%"/> 5. Enter the verification code that is sent to your email address and click **Next**. :::note If you used your phone number, you will receive a text with your code. ::: <img src="https://i.imgur.com/Rb65bA4.png" alt="drawing" width="60%"/> 6. Enter a password and click **Next**. <img src="https://i.imgur.com/Ad3L3zj.png" alt="drawing" width="60%"/> 7. You need to **Upload a profile picture** (optional) or click **Skip for now**. <img src="https://i.imgur.com/OJVPh91.png" alt="drawing" width="60%"/> 8. Enter a username and click **Next**. You can also select the username, which is automatically generated by Twitter based on your information. <img src="https://i.imgur.com/Dd9SUHU.png" alt="drawing" width="60%"/> 9. Click **Allow notifications** to receive notifications of your recent activities. <img src="https://i.imgur.com/m4Wu0Zj.png" alt="drawing" width="60%"/> 10. Your Twitter account will be successfully created. ![](https://i.imgur.com/qiJfoxJ.png) ## 2. Setup Twitter channel using developer portal To get the access token, access token secret, consumer key, and consumer secret, you need to connect to the developer portal. Use this [link](https://developer.twitter.com/en/apps). #### Prerequisites * Ensure that your phone number is verified. * Ensure that your Twitter developer account is reviewed by the Twitter support team. To setup a Twitter channel using the developer portal, follow these steps: 1. Login to the [developer portal](https://developer.twitter.com/en/apps) and click **+Create Project**. ![](https://i.imgur.com/xy7Dp5K.png) 2. Enter your project name and click **Next**. ![](https://i.imgur.com/krAbxXA.png) 3. Select a required use case and click **Next**. ![](https://i.imgur.com/lzUUWWR.png) 4. Enter a description of your project and click **Next**. ![](https://i.imgur.com/NKyznKD.png) 5. Select the required app environment and click **Next**. ![](https://i.imgur.com/I2sO4Vo.png) 6. Enter your app name and click **Next**. ![](https://i.imgur.com/OIg2v4j.png) 7. **API key** and **API key Secret** is generated. Click **App settings**. ![](https://i.imgur.com/5iUCGIs.png) 8. You can view your app details and click **Set up** under "User authentication settings". 9. On the User authentication settings page, enable the following: * Under **App permissions**, enable **Read and Write and Direct message permissions**. * Under **Type of App**, enable **Web App, Automated App or Bot**. * Under **App info**, enter the callback URL and the website URL. * Click **Save**. ![](https://i.imgur.com/bNwmAtj.png) 10. Upon enabling these permissions, a **Client ID** and **Client Secret** are generated. ![](https://i.imgur.com/B5W1Twl.png) 11. Navigate to **Keys and Tokens**, regenerate **Consumer Keys** and **Access Token and Secret** and copy them to connect the Twitter channel to your bot. ![](https://i.imgur.com/bzkk13Z.png) 12. To setup environment, under **Products** click **Twitter API V2**. ![](https://i.imgur.com/8wNjpPU.png) 13. Select **Pro** pricing plan to interact with the bot. :::note * It is recommended to select either Pro or Enterprise plan to interact with the Yellow's bot. ::: ![](https://i.imgur.com/F0SVCp6.png) The following are the limits for pro plan: Endpoint | Ratelimit ---------|---------- agent/bot messages | 1000 requests / 24 hours per user agent/bot messages| 200 requests / 15 mins per user ## 3. Connect Twitter channel to your bot To connect the Twitter channel to the Yellow.ai platform, follow these steps: 1. On the switcher, click **Channels > Social**. ![](https://i.imgur.com/CEoJTaZ.png) 2. Click **Connect**, to connect your bot to Twitter. ![](https://i.imgur.com/PFvwsPc.png) 3. Enter the account details such as **Access token, Access token secret, Consumer key, and **Consumer secret**, that you have copied from the Twitters's developer portal. **Enable twitter mentions** to receive the events from the user and send them to the bot. A ticket has been created in the Inbox module so that a live agent can respond to the users, then click **Add account**. <img src="https://i.imgur.com/AVpx2pt.png" alt="drawing" width="80%"/> 4. Your Twitter channel will be successfully connected.  ## 4. Test your bot on Twitter After configuring your Twitter developer account and connecting your bot to a Twitter channel, you need to test your bot. To test your bot on Twitter, follow these steps: 1. Open your Twitter account and click **Messages**. ![](https://i.imgur.com/8NFC9bY.jpg) 2. Use the search option to find your bot and start the conversation to test your bot. ![](https://i.imgur.com/giCnRBA.png) 3. Once you have tested your bot, the configuration of the Twitter channel for your business is complete. ![](https://i.imgur.com/U83LsQH.png) ## Twitter pricing plans The following supported pricing plans for Twitter: 1. **Free Developer App**: This plan does not allow you to access the Direct Message (DM) lookup (get messages) or manage API (post messages). 2. **Basic Developer App**: This plan allows you to access both DM lookups and manage DM APIs with the following messaging limits: * **Direct messages**: There is no limit on the number of direct messages that can be sent from Twitter to Yellow, but there is a limit on how many times you can look up or poll for new messages via the Twitter API. You can do that 5 times in 15 minutes and check for new messages every 3 minutes with this plan. ##### Limitaions * Bot or agent can send 5 messages in 15 minutes * Bot or agent can send 50 messages in 24 hours * **Mentions**: Similar to direct messages, there is no limit on the number of mentioned tweets received at Yellow. There is a limit to how many times you can use the lookup API to fetch new tweets. And there is a limit of 10 request in 15 minutes for this plan, which means you can check for new mentions every 1.5 seconds, approximately. ##### Limitaions * A bot or agent can reply or comment 100 messages in the mentioned tweets in 24 hours. * **Pro Developer App**: This plan allows you to access both DM lookups and manage DM APIs with the following messaging limits: * **Direct messages**: There is no limit on the number of direct messages that can be sent from Twitter to Yellow, but there is a limit on how many times you can look up or poll for new messages via the Twitter API. You can do that 100 times in 15 minutes and check for new messages every 10 seconds with this plan. ##### Limitaions * Bot or agent can send 200 messages in 15 minutes * Bot or agent can send 1000 messages in 24 hours * **Mentions**: Similar to direct messages, there is no limit on the number of mention tweets received at Yellow. There will be a limit on how many times you can use the lookup API to fetch new tweets. There is a limit of 300 requests in 15 minutes for this plan, which means we can check for new mentions every 3 to 4 seconds. ##### Limitaions * A bot or agent can reply or comment 100 messages in the mentioned tweets in 15 mins. * A bot or agent can reply or comment 10000 messages in the mentioned tweets in 24 hours.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully