Making a Contradiction — Dialectic Twitter Bot tutorial
Twitter
Dialogflow Programming skills: * | dialectic capacity: ***
- For a detailed step-by-step program, go to this tutorial.
- Sign up to dialogflow.com using a
Google account.
- Click on Create agent and give it
a name.
- Make questions and replies in Intents.
- Connect the bot to your Twitter account. Here is how to do that.
- 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: **
- Install Processing.
- Download this Processing library that mimics an ELIZA bot
and place it in your libraries folder.
- Integrate the Processing Twitter library by placing it in your libraries folder.
- Download a monologue example and a reply example to your sketches folder if you want a head start.
- Edit the Twitter authentification codes.
- Edit the ELIZA bot interaction in the commented code in void setup() according to the instructions.
- Find a fitting way to interact online. The Twitter cheatsheet is over here.
Node.js Programming skills: *** | dialectic capacity: *
- Download Node.js
- Copy this file and save it. Edit the authentication codes for Twitter.
- Replace
#WhateverYouWant
YourHashtagToBe with the hashtag or text you want to follow.
- Replace
var statusObj = {status: “Hi @” + tweet.user.screen_name + “, Whatever your reply is”} with the message you want to send.
- In Terminal/Powershell, insert the following codes after pressing enter:
$ cd [path/to/your/botfolder/]
$ npm install twitter
$ node bot.js
- 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.
Workshop by Jaroslav Toussaint and Vera van de Seyp
Part of Hackers & Designers Summer Academy 2018.