Cant add cchatbot on my website
# 🤝help
m
where did you insert the code?
f
under the first block
m
is there a way to view your page as an html?
f
i dont know
a
looking at google seems like you can only edit the html block by block
so just go anywhere in the middle or something and put the script, it should look something like this:
m
yes exactly you can find it in the pre-configured options
f
do you mean i have to paste the precofigered code in different blocks?
a
no
paste it in any block except the blocks in the beginning or the end, because you want it to be between the opening tag and the closing one
m

https://cdn.discordapp.com/attachments/1145018190301253682/1145020906905796649/Unbenannt.PNG

<iframe src="<script src="https://cdn.botpress.cloud/webchat/v1/inject.js%22%3E " frameborder="0"> only use this and you probably shouldnt share the whole link here
a
forget about chatgpt
just put the script inside the block in wordpress
you don;t really want to be asking chatgpt how to do every single thing, it's more useful for specific programming questions instead of "make me the code to put this script here xxxx" you probably wont get the answer that you need
f
i did try putting only the preconfigured code, but it shows this
could there be any problem with hosting or something?
m
no it works perfectly fine if you add the exact same code on a simple html page
wordpress is making it complicated smh
a
folllow that then put the preconfigured code

https://cdn.discordapp.com/attachments/1145018190301253682/1145023011569807463/image.png

f
ok
a
look where it says classic editor
f
should i just write the prconfigured code?
Doesn't work:/
b
its easier to take a plugin where you can insert the code
I'm using the following plugin

https://cdn.discordapp.com/attachments/1145018190301253682/1145067099593658378/image.png

and i'm inserting the code in body
it's low code stuff
f
I need to get a business plan for that, right? But I'm using it for totally free right now. Is there any other way I can embed the bot, even if I'm using free version of WordPress:)
Yes I have heard about inserting the code in body. (I don't have any coding knowledge) But I don't know how to do that. When I viewed with WordPress "code editor" it is not like the other manually made websites (where they have a code/word written as and I have to add the code before that) In WordPress, everything is starts with wp<group, or something like this:/ Pls help if you can
b
Hey Maruf, i will gladly help you mate! First of all, erase everything you have done so far and follow the next steps.
Download the plugin
2. from botpress dashboard select the bot which you want to integrate go to Integrations > Webchat > Pre-configured > copy the code from 'embedded'
3. open your wordpress dashboard > go to 'HFCM' (is the plugin from above) > add a new snipet > select the location 'footer' > paste the code on the Snippet / Code > click Save
optional, you can use the following video if you find my explanations too confusing

https://www.youtube.com/watch?v=Xlw0gSYGprQ&ab_channel=JustEnoughDesign

i'm here if you need additional help
4 Views