GithubHelp home page GithubHelp logo

alan-ai / alan-sdk-web Goto Github PK

View Code? Open in Web Editor NEW
2.4K 11.0 83.0 11.63 MB

Generative AI SDK for Web to create AI Agents for apps built with JavaScript, React, Angular, Vue, Ember, Electron

Home Page: https://alan.app/

voice-ai conversational-ai machine-learning ai-chat generative-ai ai ai-assistant ai-chat-bot custom-dataset enterprise

alan-sdk-web's People

Contributors

aermilin avatar annmirosh avatar dvl-es avatar gen1us avatar mikrowelt avatar okolyachko avatar snyuryev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alan-sdk-web's Issues

I do not need the text panel with words. Can I remove it (and how) to leave only the button?

Bug Report:

Please include a simple reproducing example.

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce and a minimal demo of the problem (if possible).
Your bug will get fixed much faster if we can run your code.

What is the expected behavior?

Which versions of alan-sdk-web are you using, and which browsers / OS's are affected by this issue?

Did you use it with some framework (Angular, React, etc)?
Did it work in the previous versions?

Browser - ???
OS - ???
Framework - ???
alan-sdk-web - ???

Asking a Question?

Please describe your question here or ask it on Stack Overflow:
http://stackoverflow.com/questions/tagged/alan-ai

Feature Request

Provide as much information as possible about your requested feature. Here are a few questions you may consider answering:

  • What's your use case? (Tell us about your application and what problem you're trying to solve.)
  • What interface do you have in mind? (What new properties or methods do you think might be helpful?)
  • Can you point to similar functionality with any existing libraries or components? (Working demos can be helpful.)

Is there a way to share my voice script within the Studio with someone else? Some kind of ID to be added to the URL or similar?

Bug Report:

Please include a simple reproducing example.

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce and a minimal demo of the problem (if possible).
Your bug will get fixed much faster if we can run your code.

What is the expected behavior?

Which versions of alan-sdk-web are you using, and which browsers / OS's are affected by this issue?

Did you use it with some framework (Angular, React, etc)?
Did it work in the previous versions?

Browser - ???
OS - ???
Framework - ???
alan-sdk-web - ???

Asking a Question?

Please describe your question here or ask it on Stack Overflow:
http://stackoverflow.com/questions/tagged/alan-ai

Feature Request

Provide as much information as possible about your requested feature. Here are a few questions you may consider answering:

  • What's your use case? (Tell us about your application and what problem you're trying to solve.)
  • What interface do you have in mind? (What new properties or methods do you think might be helpful?)
  • Can you point to similar functionality with any existing libraries or components? (Working demos can be helpful.)

Defining context() in studio editor fails instantaneously.

Bug Report:

Steps to reproduce:

Go to alan studio editor and type let confirm = context(); //Editor crashes
However, this works when we copy paste a code with an already defined callback function inside a context();

Also, I've to clear out my cache to remove the so-called bad code from localStorage to make it work again.

What is the current behavior?

Editor fails instantaneously with no particular error info.

What is the expected behavior?

The editor should allow writing callback function after defining context but it fails as soon as we define the empty context();

Which versions of alan-sdk-web are you using, and which browsers / OS's are affected by this issue?

I don't think it has something to do with the framework but I am using React17.0.1
Browser: Google Chrome version 87.0.4280.66 (Official Build) (64-bit)

Browser - Google Chrome version 87.0.4280.66 (Official Build) (64-bit)
OS - Windows10
Framework - React17
alan-sdk-web - 1.8.5

Here's a screenshot of what I am redirected to after the issue is encountered.

2F7EDC960C5B44A7988BC306679C05AB

Onclick show and hide alan btn

How can I display Allen by activating the button?
I mean, for example : click on SHOW BUTTON to activate Allen btn and click HIDE BUTTON to hide Allen btn

Please help me ๐Ÿฑ

Multiple instances of Alan is opening while running

I am building a news application, where alan gives the latest news using the newsapi.

While I am running the application, after it retrives and displays the news, it immeditely opens multiple instances of itself. So when I say read the news, all the instances start reading the news.

  • I used React to build the application
  • Version of alan-sdk-web: 1.3.0

Check out the app here: https://amazing-aryabhata-2fd271.netlify.app/
My repo for the project: https://github.com/Roshan-Thomas/VoiceControlledNewsReaderApp


I initially thought it was an error because I was running it locally, but the same thing happened even when I launched it on netlify.

Console displaying Alan AI api key.

Bug Report:

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce and a minimal demo of the problem (if possible).
Your bug will get fixed much faster if we can run your code.

Current behavior: google chrome dev tools console displays alan ai api key

Reproduction steps: Just create a next-app project and import the alan ai sdk as mentioned in these server-side rendering docs provided by alan ai.
Here's the link for the same- https://alan.app/docs/client-api/web/server-side-rendering/

What is the expected behavior?

Expected behavior: dev tools console should not display the alan ai api key.

Which versions of alan-sdk-web are you using, and which browsers / OS's are affected by this issue?

I'm using alan-sdk-web version - 1.8.43. I'm primarily testing it on chrome. I have a Mac OS

Did you use it with some framework (Angular, React, etc)?

Yes- I'm using NextJS

Did it work in the previous versions?

Browser - Chrome
OS - Mac OS
Framework - NextJS
alan-sdk-web - 1.8.43

microphone is not allowed in this document

Bug Report:

Despite having explicitly allowed localhost:3000 access to the microphone in chrome://settings/content/microphone (see screenshot below):
CleanShot 2022-06-09 at 13 00 12@2x

...Iโ€™m still getting the following error:
CleanShot 2022-06-09 at 13 01 09@2x

Browser - Chrome 99.0.4844.51
OS - macOS 12.2.1
Framework - React, NextJS
alan-sdk-web - 1.8.33

How to capture the speech-to-text results?

Asking a Question?

Is it possible to capture the correct user speech-to-text from Alan? I am playing around the react-integration code in the repository. But I want to capture the speech-to-text from Alan. The vairable commandData doesn't seem to contain the information. So could some please help? Thank you!

Navigator error

I added the AlanButton to my app:

import alanBtn from "@alan-ai/alan-sdk-web";
alanBtn({
 key: "myKey",
 rootEl: document.getElementById("alan-btn")
});
 
function Layout({ children }) {return (
   <>
     <Header />
 
     <main>
       <Banner />
 
       {children}
       <div id="alan-btn"></div>
     </main>
 
     <Footer />
   </>
 );
}

I get this error when I build it:

ReferenceError: navigator is not defined
    at undefined.window.alanAudio (/Users/aaron/Work/ssrtest/node_modules/@alan-ai/alan-sdk-web/index.js:13:5)
    at /Users/aaron/Work/ssrtest/node_modules/@alan-ai/alan-sdk-web/index.js:271:3
    at /Users/aaron/Work/ssrtest/node_modules/@alan-ai/alan-sdk-web/index.js:5:22
    at Object.<anonymous> (/Users/aaron/Work/ssrtest/node_modules/@alan-ai/alan-sdk-web/index.js:9:2)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:690:17)

Alan Button Not Visible

Bug Report:

Please include a simple reproducing example.

What is the current behavior?

I added the Alan Button in my code but I cannot see it on the page.

What is the expected behavior?

The button isn't showing up on the page after following the video.

Browser - Chrome

  • What's your use case? (Tell us about your application and what problem you're trying to solve.)
    Just trying to play around and get familiar with this platform.

Hope this can be solved soon!

Option to fix the position of alan button on web page.

Feature Request

  • What's your use case? (Tell us about your application and what problem you're trying to solve.)

I am trying to integrate alan into a web-based Music Player app where I can not able to see the button properly due to music control panel.

  • What interface do you have in mind? (What new properties or methods do you think might be helpful?)

Can have an option to set CSS position.

Send a command from client to script without voice

Did you use it with some framework (Angular, React, etc)?
alan-sdk-web

I cant seem to find an example on how to send a command to Alan from a text box.
I would like to give the user the option to either use the voice command or type in their questions, but I cant find an example on how to do this.

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.