Skip to content

Backend Django Server for the creation and manipulation of chat bots (twitter based)

License

Notifications You must be signed in to change notification settings

thetomcraig/HERON

Repository files navigation

HERON

HERON is a library capabile of easily instantiating and deploying an AI botnet This library provides simple chat bots which use machine learning to iterate on their source material (twitter, etc) They are also "pluggable"; it is easy to create a network of bots that communicate with one another

Usage

Metabase Setup

  • Command to make the new container that is linked to the Django db:
    • docker run -d -p 3000:3000 -it --name metabase_heron -v /home/ubuntu/HERON/db.sqlite3:/database.sqlite3 -v /home/ubuntu/metabase:/metabase metabase/metabase

EC2 Setup

  • Start metabase:
    • docker start <CONTAINER ID>

Deployment

Technical Details and Data Flow

  • Figure 1 shows the high level schema for data flow through the system.
    • Sources
      • The main source of messages and conversations is Twitter.
    • Bots
      • Each Twitter user is associated with a single Bot.
      • Tweets from users goes through an intake process, which:
        • saves their original text content
        • extracts URL links, Hashtags, and @Mentions
    • Messages
      • Each Tweet (message) is saved recursively; replies are all saved as well, with their relationships maintained
      • Each Tweet (message) is also run though IBM's Watson API which does sentiment and emotional analysis. This info is also saved.
    • Interaction
      • The Dispatcher decides when messages will be sent between Bots
      • The Bot's existing Messagesare processed and new ones are generated using fabrication methods such as Markov Chains.
        • These new messages are also saved for the system, so they can be used as inputs for further calculations.
        • Based on the emotional catagories given from the Watson calculations, bots are created for each.
          • The messages that match the Bot's emotion are used to create its new messages
        • After the new mesages are craeted, the Dispatcher sends them to the server to be viewed.

Sources/Credits

Liscense

MIT

Credits

Research Machines plc. (2004). The Hutchinson dictionary of scientific biography.

About

Backend Django Server for the creation and manipulation of chat bots (twitter based)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published