GithubHelp home page GithubHelp logo

allhorizontal8 / demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aei-ai/demo

0.0 0.0 0.0 30 KB

Sample code to demo aEi.ai functionality and API

JavaScript 92.59% CSS 1.61% HTML 5.80%

demo's Introduction

Demo

Sample code to demo aEi.ai functionality and API

Steps to try the aEi.ai API

Assuming you would like to simulate a chat between two people:

1. Open two instances of the index.html (in the static folder) in your browser,

2. In each of the pages, create a conversejs.org chat user as following:

NOTE: if you already have conversejs.org accounts, you can use them here and ignore registration steps.

  • 2.1. In the chat UI, click on the Create an Account link,

  • 2.2. Enter conversejs.org in the provider text field,

  • 2.3. Click on the Fetch Registration Form button,

  • 2.4. Enter a username and password for the this user,

  • 2.5. Click on Register button,

NOTE: users created in this step can be used later

Let's assume you have created two users with [email protected] and [email protected] usernames

3. If not automatically logged in, log in for both users in the chat UI,

4. In the chat UI of [email protected], create a new groupchat by clicking on the + button,

NOTE: if you already have a converse.js groupchat, you can use that here.

  • 4.1. Select a groupchat name ending with @conference.conversejs.org such as [email protected],

  • 4.2. Enter first part of username (user1 in this example) as Nikename in corresponding field,

  • 4.3. Click on Join button,

5. In the new opened widget, invite the other user to groupchat by entering her username ([email protected] in this example) in the invite text field and pressing Enter,

6. Click on OK button in the pop-up notice (you don't need to enter any messages),

7. Switch to the other browser page with [email protected] chat UI,

8. You should have received an invite from user1!conversejs.org. Click on OK button,

9. Enter first part of username (user2 in this example) as Nikename in corresponding field,

10. Click on Enter Groupchat button,

11. Enter "I am happy" in chat UI of [email protected],

12. Notice the update in affect model of [email protected] in available charts,

13. Switch to the other browser page with [email protected] chat UI,

14. Click on the Refresh data button,

15. Notice the update in affect model of [email protected] as result of other user's utterance,

16. Keep chatting between two users and watch the affect updates in charts.

demo's People

Contributors

rezaamini avatar aei-ai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.