Txt.openChat(prompt, targetElement, conversationName, followUpQuestions)
Argument | Type | Description |
---|---|---|
prompt | string (optional) | Generates a hidden prompt that triggers the AI to answer directly to the user. |
targetElement | DOM 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. |
conversationName | string (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. |
followUpQuestions | string[] (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. |