Txt.openChat(prompt, targetElement, conversationName, followUpQuestions)
ArgumentTypeDescription
promptstring (optional)Generates a hidden prompt that triggers the AI to answer directly to the user.
targetElementDOM Element (optional)A target element on the page that you can attach the AI popover to, usually this is the button the user clicked on.
conversationNamestring (optional)A conversation name of this particular chat session. You can use this to separate different conversations. The conversation name will show up in the top left corner of the popover.
followUpQuestionsstring[] (optional)An array of questions that will show below the starting message. We advise to use a maximum of three questions due to the limited space available in the chat UI.