Can't send a chat when I deployed a chatbot

update: Here is an error message likely related:

[Error] SyntaxError: The string did not match the expected pattern.
(anonymous function)

Fl (chat.bundle.es.js:817)
br (chat.bundle.es.js:814)
(anonymous function) (chat.bundle.es.js:781)

It’s rerring to the webhook.

Here is my page; I put …'s around the word script as comments here can’t have actual script tags:

< ...script... type="module"> import { createChat } from 'https://cdn.jsdelivr.net/npm/@n8n/chat/dist/chat.bundle.es.js';
    createChat({
            webhookUrl: "https://n8n-railway-custom-production-fc79.up.railway.app/webhook/<id here; redacted>/chat"
    });

<…script…>
~
update: when I chose to add an option at the bottom of the node configuration interface and added a default input text, the input appeared. Hmmm.

update 2: seems to be working. the next issue was that the chat responses were full json messages; I found the solution here (see Romain’s answer):