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
The repository includes a static configuration assistant at `examples/config-assistant/index.html`. It uses a progressive bundle loader:
96
+
97
+
-**Development / local file usage**: tries `../../packages/widget/dist/webagent.min.js` first so the demo works directly from the repo or a local static server.
98
+
-**Production hosting**: falls back to versioned CDN URLs for `@vibetechnologies/webagent`, which makes the page safe to deploy as plain static assets on Cloudflare without copying the widget build output.
If you want the demo to call a real backend by default, edit the form defaults in `examples/config-assistant/index.html` before deployment or configure the values in the browser after publishing.
110
+
111
+
### Cloudflare Workers static assets
112
+
113
+
Point a Worker at the example directory with Wrangler assets:
114
+
115
+
```toml
116
+
name = "webagent-config-assistant"
117
+
compatibility_date = "2025-01-01"
118
+
119
+
[assets]
120
+
directory = "examples/config-assistant"
121
+
```
122
+
123
+
Then deploy:
124
+
125
+
```bash
126
+
pnpm --filter @vibetechnologies/webagent build
127
+
npx wrangler deploy
128
+
```
129
+
130
+
### Optional: self-host the widget bundle
131
+
132
+
If you want Cloudflare to serve the widget bundle instead of the CDN, copy `packages/widget/dist/webagent.min.js` into your static asset directory and update the loader candidates in `examples/config-assistant/index.html` to prefer that hosted path in production.
133
+
86
134
## Customer API Key Setup
87
135
88
136
### Create a managed key
@@ -131,6 +179,9 @@ curl -X PUT https://your-worker.workers.dev/api/kb/my-docs \
131
179
]'
132
180
```
133
181
182
+
By default this backend can store KB docs in **KV** (free-tier friendly) when no R2 bucket binding is configured.
183
+
If you enable and bind R2 later, `/api/kb` automatically uses R2.
184
+
134
185
### Configure widget to use KB
135
186
136
187
```html
@@ -149,6 +200,9 @@ curl -X PUT https://your-worker.workers.dev/api/kb/my-docs \
149
200
|---|---|---|
150
201
|`ADMIN_SECRET`| Yes | Secret for admin API endpoints |
151
202
|`RESEND_API_KEY`| Yes |[Resend](https://resend.com) API key for email |
203
+
|`AZURE_DEV_AI_API_KEY`| Yes (for Azure GPT-5.1 proxy mode) | Azure OpenAI key used by backend proxy when provider is `azure-openai`|
0 commit comments