I would like to add a snippet code taken from chatful in order to add web chatbot.
according to the instructions the snippet should be added under the tag.
is it possible to add the html code, and what is the best way to do it?
Here is a great guide on how to do this: Embedding Custom Code on Your Site | Help Center | Wix.com
Check this previous forum post here.
https://www.wix.com/corvid/forum/community-discussion/integrate-chatfuel-chatbot-with-wix-website
Please also note on the linked page above, that as your code is being provided by a third party provider, in this case Chatfuel, then Wix will not provide support for the code and you will need to go back to the third parties own support.
Important:
Wix does not provide support for technical difficulties associated with third-party code snippets. If you are experiencing an issue with your code snippet, please contact the provider directly.
A better option here would be to make use of their npm.
https://www.npmjs.com/package/chatfuel-api
You can see if it is already supported in Wix Package Manager and if not request it.
https://support.wix.com/en/article/corvid-working-with-npm-packages
https://support.wix.com/en/article/corvid-working-with-npm-packages#requesting-a-package912
Or use their own API and expose your site to it.
https://docs.chatfuel.com/en/collections/168839-advanced-building-components
https://www.wix.com/corvid/reference/wix-fetch.html
https://support.wix.com/en/article/corvid-accessing-third-party-services-with-the-fetch-api
https://www.wix.com/corvid/reference/wix-http-functions.html
https://support.wix.com/en/article/corvid-exposing-a-site-api-with-http-functions
Examples.
https://www.wix.com/corvid/example/exposing-apis
https://www.wix.com/corvid/forum/tips-tutorials-examples/example-myapi-and-myapiclient