Share feedback, ideas and get community help

F
M
a
g
E
Members
Donal
D
Donal
Offline, last seen last month
Joined September 13, 2024
Hi there,

I had an issue earlier today where my embeded Typebot was not loading and I was getting the error:
Error! Couldn't initiate the chat. ()

The issue was that I didn't have an apiHost set in my initStandard() call and the default was going to
https://chat.typebot.io/api/v1/typebots/
Adding an apiHost of: https://typebot.io fixed this.

This error came out of nowhere i.e. the chat was working on my site yesterday and stopped working today.
I'd like to set up some error handling so that if there's an error with the Typebot in future, I can show something else.

Is there anything in the HTML & Javascript library I could use to tell if there's an error with initialising the chat to prevent this happening in future?
The only solution I have come up with so far is to use querySelectors to parse the loaded data and if an error exists in the children - I show something else.

Thanks in advance!
4 comments
B
D
Hi there,

I'm building a chatbot which is embedded inside a react app.
I'm running into issues with the Typebot loading without it's prefilledVariables - even though directly before I load the typebot I'm console.logging the values and they are all defined and available. This happens sporadically, sometimes it loads fine, other times it doesn't. Any ideas?
Happy to share code if needed.
1 comment
B
I'm trying to use a webhook block to save history from the typebot in my database, however I can't test against a local API URL (such as http://localhost:8000/API_URL) for obvious reasons. Is there any way around this without me having to deploy my API first?
5 comments
D
B
Hello!
Currently building a typebot to help users navigate a web app and apply filters (via redirects/links etc).

When I redirect a user, the typebot starts again. Is there a way for me to start the bot where I left off by passing some form of session back into it?

To clarify, I'm using the standard HTML & Javascript implementation so the only relevant props I see that can be passed in are typebot and prefilledVariables

Thanks in advance!
4 comments
D
B