English 中文(简体)
How do I connect Alexa to ChatGPT
原标题:

I m trying to connect Alexa to openAI s API using my APIkey for chat completions and not sure where to write the code for the function in the Alexa Skills Kit. In the Lambda file there are: index.js, local-debugger, package.JSON and utils.js files. Do I create a new .js file in the lambda folder of do I edit the utils or index file? The package.JSON has been edited and tested in the console and it seems to be working internally but i still need to parse the slot and send it in JSON format to Open AI for completion. The function must also "await" and speak out a response. I ve been trying to accomplish this with just a lambda function and have attempted to host the function both by Alexa and Lambda but im starting to wonder if an API POST request would be the proper tool. The main error I m encountering is Async / Await errors

I ve created the Alexa skill and established a wake word and slot named "{query}" under the prebuilt slot type search.query. I ve successfully tested that my wake word is functional within the Alexa framework. I ve installed the Alexa Skills Kit in vs code and created the skill in the VS code terminal via the Alexa Developer Extension. I switched to the AWS GUI to edite the wake word, sample utterances and Slot.I have an open AI API key and was able to get that imported in vs code but not clear on where the API key and chat comnpletion call code for the API call goes.

问题回答

暂无回答




相关问题
How do I connect Alexa to ChatGPT

I m trying to connect Alexa to openAI s API using my APIkey for chat completions and not sure where to write the code for the function in the Alexa Skills Kit. In the Lambda file there are: index.js, ...

Get all baklink domains of any particular domain using php

Hii to all I am stuck here I need a list of all domains which having backlinks of any particular domain. Can anyone help me for this? Please provide me some link or some api procedure to get all the ...

How can I block Alexa Toolbar users?

Any ideas how I can block Alexa Toolbar users? I don t want to appear in the rankings while we are in beta ... I see you can block their search engine with User-agent: ia_archiver Disallow: / but I ...

How to know the original country of a website?

I want to know the original country of a website. I noticed that Alexa website can often detect the original country of websites. For example, Alexa can detect that the original country of ...

Fetching Alexa data [closed]

How is it possible to get traffic data, sub domains data, country rank in percentage like in http://www.websiteoutlook.com/www.google.com?

How do Alexa and Google Analytics track demographics?

How are services like Alexa and Google Analytics capable of tracking visitors age, gender, college education, and so forth? http://www.alexa.com/siteinfo/stackoverflow.com

php file got executed by alexa crawler and caused problems!

I ve wrote a script that will be used to release the new pages automatically at a particular time. It will just show a countdown timer and then when it reaches 0 it will rename a particular file into ...

热门标签