Allie.Chat has an extensive WebAPI and allows users to register Client Applications and ApiResources to use Allie.Chat as their own Authorization
Server:
To get started with Allie.Chat, first visit the Allie.Chat WebApplication and create an
account or login with your favorite 3rd party provider including but not limited to Facebook and Google. After you log in, you
will be redirected to the Allie.Chat Dashboard.
Add image of Interface here
From the Allie.Chat dashboard, you can access the subsections of the Allie.Chat WebApplication. These components include:
Bots
Streams
Currencies
Commands
To get started, lets create our first bot.
Create Your First Bot
The first bot we will create will be a Websocket bot. When you create a Websocet bot, your new bot will be assigned a unique
OAuth token to use when connecting your bot to the Allie.Chat Tcp servers. Let's first create a temporary Tcp bot, retrieve the OAuth
token, and then connect it to the Allie.Chat unsecured Tcp server.
From the Allie.Chat Dashboard, first select bots from the top navigation menu. A list of bots you have registered to your
Allie.Chat account are displayed. If you are brand new, this list will be empty as we have not yet added our first bot.
Include image of Bots.png here
From the dropdown menu, select 'Websocket' and click 'Create Bot'.
Insert image of Create Bot
This is the Create Bot component for Tcp and Websocket Bots. On this page, let's complete the form for our new Websocket bot
and assign it a Username - for our demo, let's assign a username of "Demo Websocket Bot". The second field, Avatar Url, is optional,
but we could assign an Avatar Url to be linked with any messages routed from our Websocket Bot.
Insert image of populated Bot.png
Click Save to create your bot. Your newly created bot will be visible on the bots list component. Select your newly
created Websocket Bot and we will next retrieve your OAuth token.
Insert picture of Bots list with new bot
On the Websocket Bot edit page, you can modify the Tcp or Websocket bot's Username and Avatar Url. At the the bottom of the form,
an obfuscated text field contains your bot's OAuth token. To view or copy the OAuth token to your clipboard, click on the Show OAuth Token
button.
Add image for OAuth token
This OAuth token should be private and not available to the public. If for any reason it becomes exposed, you can request a new OAuth token
for this bot by clicking on the Reset Token
Next, we will use this OAuth token to make a simple Javascript client to connect to the Allie.Chat Websocket Serer.
Connect your Websocket bot with a simple Javascript Client