diff --git a/src/app/components/website/MicrositeEditor.tsx b/src/app/components/website/MicrositeEditor.tsx
index 296d220d..d744983f 100644
--- a/src/app/components/website/MicrositeEditor.tsx
+++ b/src/app/components/website/MicrositeEditor.tsx
@@ -14,7 +14,7 @@ function builderIframeSrc(): string {
}
function apiBaseUrlForChild(): string {
- const base = import.meta.env.VITE_API_URL || "http://localhost:3001/api";
+ const base = import.meta.env.VITE_API_URL || "http://localhost:3002/api";
return normalizeBaseUrl(base);
}
diff --git a/src/app/components/whatsapp-chatbot/WhatsAppChatbotsPage.tsx b/src/app/components/whatsapp-chatbot/WhatsAppChatbotsPage.tsx
index b5063b31..cc229a2c 100644
--- a/src/app/components/whatsapp-chatbot/WhatsAppChatbotsPage.tsx
+++ b/src/app/components/whatsapp-chatbot/WhatsAppChatbotsPage.tsx
@@ -141,7 +141,11 @@ export function WhatsAppChatbotsPage() {
greeting: bot.greeting,
registration: bot.registration,
knowledge: bot.knowledge
- ? { includeEventDetails: bot.knowledge.includeEventDetails }
+ ? {
+ includeEventDetails: bot.knowledge.includeEventDetails,
+ includeFoodRecommendations: bot.knowledge.includeFoodRecommendations,
+ includePlacesRecommendations: bot.knowledge.includePlacesRecommendations,
+ }
: undefined,
});
if (res.error) {
@@ -211,6 +215,20 @@ export function WhatsAppChatbotsPage() {
await loadBot(bot._id);
};
+ const handleSyncFood = async () => {
+ if (!bot) return;
+ await conciergeBotsApi.syncFoodKnowledge(bot._id);
+ setMsg("Food recommendations sync queued");
+ await loadBot(bot._id);
+ };
+
+ const handleSyncPlaces = async () => {
+ if (!bot) return;
+ await conciergeBotsApi.syncPlacesKnowledge(bot._id);
+ setMsg("Places recommendations sync queued");
+ await loadBot(bot._id);
+ };
+
const handleAddUrl = async () => {
if (!bot || !urlInput || !urlName) return;
await conciergeBotsApi.createSource(bot._id, {
@@ -230,7 +248,7 @@ export function WhatsAppChatbotsPage() {
const up = await uploadMediaFile(file, {
eventId: eid,
module: "concierge",
- name: file.name,
+ //name: file.name,
});
const key = up.s3Key;
if (!key) {
@@ -422,6 +440,33 @@ export function WhatsAppChatbotsPage() {
/>
Include event programme in knowledge base
+
+
+