This document provides step-by-step instructions on how to deploy a gebo human-agent interface (HAI). It is comprehensive so that you may copy, paste, and execute the commands and deploy the configurations provided, from beginning to end.
Some of these instructions may have already been executed in previous gebo tutorials.
This is going in your ~/.grunt-init/ directory:
Upon execution the
gebo-react-hai will prompt you for some input, with some fields prefilled:
Once everything is configured to your liking, execute:
If everything has been initialized correctly, the tests should pass:
By default, your HAI will be running at http://localhost:9000. There you will see a vanilla gebo HAI interface.
Obviously, a simple Hello, world! HAI isn’t going to suffice. You’re going to want to implement your own functionality…
gebo-react-hai template produces this directory structure:
scripts/gebo directory is critical to interfacing with the gebo-server. Monkey with it at your own risk. I like to place project-specific React components in a
scripts/lib directory, which I create myself. Use
scripts/Interface.js as launch points for your own gebo HAI.
Out of the box, the
HelloWorld.js interface is intended as a welcome to unauthenticated clients. The functionality defined in
Interface.js is only for friendos of the corresponding gebo agent.
Your HAI needs to know what gebo agent it’s talking to. This is specified in