You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Beak.js lets you integrate custom conversational assistants into your React applications.
3
+
Beak.js contains everything you need to create custom AI-powered assistants for your React app.
4
4
5
5
**Key Features:**
6
6
@@ -32,7 +32,7 @@ import { Beak } from "@beakjs/react";
32
32
33
33
constApp= () => (
34
34
<Beak
35
-
openAIApiKey="sk-..."
35
+
__unsafeOpenAIApiKey__="sk-..."
36
36
instructions="Assistant is running in a web app and helps the user with XYZ."
37
37
>
38
38
<MyApp />
@@ -43,7 +43,7 @@ const App = () => (
43
43
44
44
Now, you've got a chat window ready in the bottom right corner of your website. Give it a try!
45
45
46
-
**Note:** Don't expose your API key in public-facing apps. We will be adding a solution for securely using your API key soon.
46
+
**Note:** Don't expose your API key in public-facing apps - this is for development only. See [Deployment](#deployment)for information on how to securely deploy your app without compromising your API key.
47
47
48
48
### Making Beak.js work with your app
49
49
@@ -94,6 +94,18 @@ const MyApp = () => {
94
94
95
95
By using `useBeakFunction` together with `useBeakInfo`, your assistant can see what's happening on the screen and take action within your app depending on the current context.
96
96
97
+
## Deployment
98
+
99
+
To keep your API keys safe, we set up a server that forwards your assistant's requests to OpenAI.
100
+
101
+
Currently, we support the following deployment options:
102
+
103
+
-[Next.js](/docs/deployment/next.md)
104
+
-[Remix](/docs/deployment/remix.md)
105
+
-[Express](/docs/deployment/express.md)
106
+
107
+
Read more by clicking the links above.
108
+
97
109
## Run the Demo
98
110
99
111
To run the demo, build the project and start the demo app:
0 commit comments