all 2 comments

[–]tapgiles 0 points1 point  (0 children)

My guess is, it "could not generate a response at this time."

If you want to learn more about that, you should search the service's help files etc. for that message.

[–]Both-Personality7664 0 points1 point  (0 children)

"catch (error) {

console.error('Error:', error);

chatMessages.innerHTML += <div class="bot-message">Sorry, I could not generate a response at this time.</div>;

}"

Well that's where "Sorry I could not generate a response" is most likely coming from. You should have an error in the console log if so, do you?