alan-ai / alan-sdk-web Goto Github PK
View Code? Open in Web Editor NEWGenerative AI SDK for Web to create AI Agents for apps built with JavaScript, React, Angular, Vue, Ember, Electron
Home Page: https://alan.app/
Generative AI SDK for Web to create AI Agents for apps built with JavaScript, React, Angular, Vue, Ember, Electron
Home Page: https://alan.app/
Please include a simple reproducing example.
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.
Did you use it with some framework (Angular, React, etc)?
Did it work in the previous versions?
Browser - ???
OS - ???
Framework - ???
alan-sdk-web - ???
Please describe your question here or ask it on Stack Overflow:
http://stackoverflow.com/questions/tagged/alan-ai
Provide as much information as possible about your requested feature. Here are a few questions you may consider answering:
Please include a simple reproducing example.
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.
Did you use it with some framework (Angular, React, etc)?
Did it work in the previous versions?
Browser - ???
OS - ???
Framework - ???
alan-sdk-web - ???
Please describe your question here or ask it on Stack Overflow:
http://stackoverflow.com/questions/tagged/alan-ai
Provide as much information as possible about your requested feature. Here are a few questions you may consider answering:
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.
Editor fails instantaneously with no particular error info.
The editor should allow writing callback function after defining context but it fails as soon as we define the empty context();
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.
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 ๐ฑ
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.
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.
The wakeword is not working with Alan added to a website. Any ideas?
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/
Expected behavior: dev tools console should not display the alan ai api key.
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
What is the difference between setVisualState and callProjectApi methods?
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!
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)
Any chance of getting official typescript definitions?
Please include a simple reproducing example.
I added the Alan Button in my code but I cannot see it on the page.
The button isn't showing up on the page after following the video.
Browser - Chrome
Hope this can be solved soon!
Noticed preview logo image link returns 404 error page.
Image would display in the web page.
Do you have any plans to support Python for voice scripts?
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.
Can have an option to set CSS position.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.