1. Learn center
  2. Software development
  3. How-tos
  4. How to create a Typetalk bot for Twitter keywords

How to create a Typetalk bot for Twitter keywords

Typetalk Staff

Typetalk Staff

February 01, 2018

Nulab’s products often make their way onto Twitter through prospective and existing customer tweets all the time. It’s important to us that we listen to feedback from our customers no matter where it comes from, but tweets can be hard to keep track of. That’s why we created a Typetalk bot that notifies us any time a person tweets using one of our product names, like Typetalk.

You can track important keywords on Twitter, too. All you need is the help of a little web service called IFTTT that helps you define “IF” and “THEN” directions. Just follow these steps.

How to create a Twitter keyword bot for Typetalk

Create your bot

First, create a bot using the Topic Settings of your designated Typetalk Topic. Make sure to check the “topic.post” option for the API Scope, so your bot can post messages.

create your Typetalk bot

This is all you need to do to create a bot.

get or post url

Set up your IFTTT formula

Next, we need to set up a formula in IFTTT that tells our bot what to do.

If you don’t have an account, you can set one up for free.

Once you’ve created an account and logged in, select “New Applet” from the upper-right-hand menu.

select New Applet

Next, click “this” to search their database of applications.

click this to search

Search for Twitter, and select it.

search for twitter

Select “New tweet from search”.

Select New tweet from search

For our bot, we wanted notifications for all of our products, so we used the following search operator: “Backlog OR Cacoo OR Typetalk exclude:retweets”. Use any of the advanced search operators used by Twitter. When you’ve finished, click ”Create trigger”.

click Create trigger

Next, click “that.”

click that

Enter ”webhook,” and select it.

Enter webhook

Select “Make a web request”.

Select Make a web request

Enter the following, and click “Create action”.

  • URL: “Get or post messages URL” in your Typetalk bot settings
  • Method: POST
  • Content Type: application/x-www-form/urlencoded
  • Body: message= {{LinkToTweet}}&typetalkToken=”Typetalk Token” in your Typetalk bot settings

click Create action

We’re creating an IF/THEN formula using IFTTT. In this case, we’re saying “IF someone tweets about Typetalk, Backlog or Cacoo, THEN post a message to this Typetalk Topic.” Your IF keywords may be different, but you should use the same THEN.

Finally, click “Finish”.

click Finish

Test your bot

Send out a test tweet with your keyword(s) to ensure that your bot is working. You should receive a Typetalk notification in your designated Typetalk Topic shortly thereafter.

test your bot

Never miss an important tweet again! Plus, stay in-the-loop on important social media conversations without ever having to leave your favorite chat app.


Subscribe to our newsletter

Learn with Nulab to bring your best ideas to life