Modify flowise chatbot application as follows: I have modified flowise AI js call from website as follows: <script type="module"> import Chatbot from "https://cdn.jsdelivr.net/npm/flowise-embed/dist/web.js" let url = window.location.origin + window.loca
Budget: $15 – $25 USD
I have modified flowise AI js call from website as follows:
<script type="module">
import Chatbot from "https://cdn.jsdelivr.net/npm/flowise-embed/dist/web.js"
let url = window.location.origin + window.location.pathname; // removes query + hash
console.log("🔧 Normalized Page URL:", url);
Chatbot.init({
chatflowid: "xxx",
apiHost: "xxx",
chatflowConfig: {
"page_url": url
}
})
</script>
The idea is to use page_url variable as a metadata filter in pinecone object inside flowise.
url:"{{page_url}}"
<script type="module">
import Chatbot from "https://cdn.jsdelivr.net/npm/flowise-embed/dist/web.js"
let url = window.location.origin + window.location.pathname; // removes query + hash
console.log("🔧 Normalized Page URL:", url);
Chatbot.init({
chatflowid: "xxx",
apiHost: "xxx",
chatflowConfig: {
"page_url": url
}
})
</script>
The idea is to use page_url variable as a metadata filter in pinecone object inside flowise.
url:"{{page_url}}"