Utility functions
The following utility functions are available on the Txt global object:
- Get Value — retrieve a visitor data value by key
- Set Value — store a custom key/value pair on the visitor
- Logout — clear all Unless storage and cookies
- Send a Message — programmatically send a prompt to the AI
- Get Conversation Transcript — retrieve the current conversation as a string
- Get Last QA Pair — retrieve the most recent question and answer