Create a integration
# 🤝help
q
I want to create an integration, but I encountered an error when using the "bp" command. What should I do to resolve this issue? Thanks🙏 /opt/homebrew/lib/node_modules/@botpress/cli/node_modules/browser-or-node/lib/index.js:19 var isJsDom = typeof window !== "undefined" && window.name === "nodejs" || typeof navigator !== "undefined" && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom")); ^ TypeError: Cannot read properties of undefined (reading 'includes') at Object. (/opt/homebrew/lib/node_modules/@botpress/cli/node_modules/browser-or-node/lib/index.js:19:133) at Module._compile (node:internal/modules/cjs/loader:1369:14) at Module._extensions..js (node:internal/modules/cjs/loader:1427:10) at Module.load (node:internal/modules/cjs/loader:1201:32) at Module._load (node:internal/modules/cjs/loader:1017:12) at Module.require (node:internal/modules/cjs/loader:1229:19) at require (node:internal/modules/helpers:177:18) at Object. (/opt/homebrew/lib/node_modules/@botpress/cli/node_modules/@botpress/client/dist/index.cjs:1:1336) at Module._compile (node:internal/modules/cjs/loader:1369:14) at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
f
Did you run bp build?
q
Yes, I have installed the bp CLI using: npm install -g @botpress/cli added 1 package, and changed 259 packages in 26s 45 packages are looking for funding run
npm fund
for details
I solved the problem. I checked the documentation, which recommends using Node 18 or higher. However, Node 21 didn't work for executing. After downgrading to version 18, I was able to use the "bp" command. 🥲
f
Do you get the same error when running bp login?
q
no i don't
f
Just to make sure. This only happens when you run bp build right
q
thank you. But I can't get my integration-id😭 I am sure that I am already logged in.
I am using the Hello World template.
f
Looks to be fine. Can you share your code from the integration.definition.ts here
And maybe our integration expert @straight-wolf-37371 can see what the issue is
q
I have resolved the issue. I found that I was using the wrong CLI command. Sorry for the confusion.
@fresh-fireman-491 I have a question. I created a bot in Botpress Cloud and integrated it with Slack. However, I noticed that the response time is quite slow during conversations on Slack. Is there a way to resolve this? Can I deploy such a bot on my local server? Thanks🙏
f
Is it also slow in the emulator?
You can host it yourself by using the V12, but it's not being maintained anymore, and it's missing a lot of features
#1112845893931110402
q
Thanks I will check the specific documentation.
5 Views