Spaces:
Running
Running
Connect AI concierge: site-wide agent + 博多 Mitsubachi agent on its page
Browse files- assets/config.js +13 -1
assets/config.js
CHANGED
|
@@ -80,7 +80,12 @@ window.OPEFAC_CONFIG = {
|
|
| 80 |
|
| 81 |
/* ---- Motenashi AI concierge chat (AI SNS) ---------------------------------
|
| 82 |
Agent ID from the AI SNS dashboard. Set → the chat widget loads on every page. */
|
| 83 |
-
AISNS_AGENT_ID: "",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
AISNS_HOST: "https://chatapp.ai-sns.io",
|
| 85 |
AISNS_EMBED_SRC: "https://chatapp.ai-sns.io/embed.min.js",
|
| 86 |
|
|
@@ -92,3 +97,10 @@ window.OPEFAC_CONFIG = {
|
|
| 92 |
mail app with the message filled in, addressed here. */
|
| 93 |
CONTACT_EMAIL: "web@opefac.com"
|
| 94 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
/* ---- Motenashi AI concierge chat (AI SNS) ---------------------------------
|
| 82 |
Agent ID from the AI SNS dashboard. Set → the chat widget loads on every page. */
|
| 83 |
+
AISNS_AGENT_ID: "utAsFtFRu5D6nmrwcBZK", // OPERATION FACTORY AIコンシェルジュ(サイト全体)
|
| 84 |
+
/* Restaurant pages listed here load that restaurant's own agent instead
|
| 85 |
+
(restaurant/<slug>.html → agent ID). */
|
| 86 |
+
AISNS_AGENT_BY_STORE: {
|
| 87 |
+
"mitsubachi": "9SthO8c6ujLgk1ZfjkBH" // 博多 Mitsubachi ‐ミツバチ‐ AIコンシェルジュ
|
| 88 |
+
},
|
| 89 |
AISNS_HOST: "https://chatapp.ai-sns.io",
|
| 90 |
AISNS_EMBED_SRC: "https://chatapp.ai-sns.io/embed.min.js",
|
| 91 |
|
|
|
|
| 97 |
mail app with the message filled in, addressed here. */
|
| 98 |
CONTACT_EMAIL: "web@opefac.com"
|
| 99 |
};
|
| 100 |
+
|
| 101 |
+
/* Per-store concierge: on restaurant/<slug>.html, use that store's agent when one is set. */
|
| 102 |
+
(function (c) {
|
| 103 |
+
var m = location.pathname.match(/\/restaurant\/([^\/?#]+)\.html$/);
|
| 104 |
+
var id = m && c.AISNS_AGENT_BY_STORE && c.AISNS_AGENT_BY_STORE[m[1]];
|
| 105 |
+
if (id) c.AISNS_AGENT_ID = id;
|
| 106 |
+
})(window.OPEFAC_CONFIG);
|