Bot Deployment Custom Code Issue
# šŸ¤help
q
Hello! I was looking for some help with my first bot deployment. I use kartra in my business and to create my landing pages. I reached out to their support first, but they said that custom code falls outside of their area of expertise. And you all are normally super helpful on here, so I figured I’d reach out! I’ll I'm looking for help when it comes to an issue with a new page I've created within Kartra. And a bot press bot i tried to deploy to the page. I have deployed a Botpress powered chatbot to the page, and for some reason, on mobile, it stretches the page out very far. Leaving a big white space and a messed up mobile format. You open the chatbot by pressing the gray text bubble button on the landing page. You can see it at www.imbetterdaily.com. I'll also put the link to the page here: https://adamholland.kartra.com/page/Ego40 I'd like help in changing this kartra page so that it just shows the video that's there, and the chatbot, normally formatted on mobile with no large white space. Is this an issue that others have experienced before? And if so, how did they solve this problem? Kartra might just be a bad platform when it comes to integrating bots OR I might just not be deploying the bot in the best way. Right now, I just used the preconfigured embed code to deploy the bot. And I deployed it within a ā€œcustom codeā€ component that I added to the page. Kartra uses this page builder with preconfigured components. And this might be the root of the issue. In the future, is something like Webflow an easier platform to work with custom code over kartra? Please lend any assistance possible, as soon as possible! Thank you!
q
Hi! Thanks for the response! Yes the page shows up and the bot is there. However, there’s a big white space at the bottom when you access the site from mobile. I’m looking to see how I can eliminate this big white space. As well as not have the chat stretch super long over the length of the mobile screen?
So this white space here on the landing page itself
f
I think that is just your website. Have you tried moving the image down a bit? Or something up?
g
This custom module won't install at all
Starting build_module_builder_1 ... done Attaching to build_module_builder_1 module_builder_1 | yarn install v1.22.5 module_builder_1 | [1/4] Resolving packages... module_builder_1 | success Already up-to-date. module_builder_1 | Done in 0.10s. module_builder_1 | yarn run v1.22.5 module_builder_1 | $ node bin/entry build module_builder_1 | internal/modules/cjs/loader.js:818 module_builder_1 | throw err; module_builder_1 | ^ module_builder_1 | module_builder_1 | Error: Cannot find module '/modules/custom-component/bin/entry' module_builder_1 | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15) module_builder_1 | at Function.Module._load (internal/modules/cjs/loader.js:667:27) module_builder_1 | at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) module_builder_1 | at internal/main/run_main_module.js:17:47 { module_builder_1 | code: 'MODULE_NOT_FOUND', module_builder_1 | requireStack: [] module_builder_1 | } module_builder_1 | error Command failed with exit code 1. module_builder_1 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. build_module_builder_1 exited with code 1
version: '3' services: module_builder: image: botpress/module-builder:v0_0_2 user: "0" volumes: - /dclife/botpress_compose_nlu/data/assets/modules/custom-component:/modules/custom-component command: sh -c 'cd /modules/custom-component && yarn && yarn build && yarn package' ~
REPOSITORY TAG IMAGE ID CREATED SIZE botpress/server latest e5b5f5d6356c 2 days ago 3.37GB botpress-duckling latest e5b5f5d6356c 2 days ago 3.37GB botpress/server 12.30.10 b994efd4651e 10 months ago 3.37GB nginx 1.21 0e901e68141f 2 years ago 142MB rasa/rasa-x-demo 0.42.4 69404ebb8fd1 2 years ago 216MB tumihub/botpress-lang latest e8cfbd422cf4 2 years ago 2.04GB bitnami/redis 6.2.4 b24155be169f 2 years ago 95.4MB bitnami/rabbitmq 3.8.17 c58230050f22 3 years ago 209MB botpress/module-builder v0_0_2 88dccc11ebac 3 years ago 2.41GB rasa/duckling 0.1.6.5-r2 664ec1148e92 3 years ago 162MB bitnami/postgresql 11.11.0 783da6164a58 3 years ago 258MB nginx 1.19 f0b8a9a54136 3 years ago 133MB postgres 11.2-alpine cd1fb3df8252 5 years ago 70.8MB
yarn && yarn build yarn install v1.22.22 info No lockfile found. [1/4] Resolving packages... warning fstream@1.0.12: This package is no longer supported. warning fstream > rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported warning fstream > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported warning fstream > rimraf > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. warning @babel/cli > glob@7.2.3: Glob versions prior to v9 are no longer supported warning @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. error Error: https://registry.yarnpkg.com/@botpress%2fui-shared: Not found at Request.params.callback [as _callback] (/usr/lib/node_modules/yarn/lib/cli.js:66680:18) at Request.self.callback (/usr/lib/node_modules/yarn/lib/cli.js:141410:22) at Request.emit (node:events:513:28) at Request. (/usr/lib/node_modules/yarn/lib/cli.js:142382:10) at Request.emit (node:events:513:28) at IncomingMessage. (/usr/lib/node_modules/yarn/lib/cli.js:142304:12) at Object.onceWrapper (node:events:627:28) at IncomingMessage.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1358:12) at processTicksAndRejections (node:internal/process/task_queues:83:21) info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
yarn add @botpress/sdk@0.8.27 yarn add v1.22.22 [1/4] Resolving packages... [2/4] Fetching packages... error @bpinternal/zui@0.8.6: The engine "node" is incompatible with this module. Expected version ">=16.0.0". Got "12.18.1" warning @bpinternal/zui@0.8.6: The engine "pnpm" appears to be invalid. error Found incompatible module. info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
4 Views