Making a Contradiction — Dialectic Twitter Bot tutorial


Twitter


Dialogflow Programming skills: * | dialectic capacity: ***

  1. For a detailed step-by-step program, go to this tutorial.
  2. Sign up to dialogflow.com using a 
Google account.
  3. Click on Create agent and give it 
a name.
  4. Make questions and replies in Intents.
  5. Connect the bot to your Twitter account. Here is how to do that.
  6. If you want to start with an example, here is a bot that you can import into your own Dialogflow environment .

Processing Programming skills: ** | dialectic capacity: **

  1. Install Processing.
  2. Download this Processing library that mimics an ELIZA bot 
and place it in your libraries folder.

  3. Integrate the Processing Twitter library by placing it in your libraries folder.

  4. Download a monologue example and a reply example to your sketches folder if you want a head start.
  5. Edit the Twitter authentification codes.
  6. Edit the ELIZA bot interaction in the commented code in void setup() according to the instructions.

  7. Find a fitting way to interact online. The Twitter cheatsheet is over here.

Node.js Programming skills: *** | dialectic capacity: *

  1. Download Node.js
  2. Copy this file and save it. Edit the authentication codes for Twitter. 

  3. Replace #WhateverYouWant
YourHashtagToBe with the hashtag or text you want to follow.
  4. Replace var statusObj = {status: “Hi @” + tweet.user.screen_name + “, Whatever your reply is”} with the message you want to send.

  5. In Terminal/Powershell, insert the following codes after pressing enter:

    $ cd [path/to/your/botfolder/]

    $ npm install twitter

    $ node bot.js

  6. See the answers coming in real-time! If your hashtag is not that popular, it might take a while before it runs. Press CTRL+C stop the terminal from fetching.

Link to more chatbot integrations (***)

Link to the presentation PDF


Workshop by Jaroslav Toussaint and Vera van de Seyp

Part of Hackers & Designers Summer Academy 2018.