Set chat metadata

Any chat metadata you set will be visible in the Unless dashboard when reviewing a conversation. Chat metadata can also be directly used by AI skills. The metadata can already be set before opening the AI component. Note that any of these will be overridden by any secure traits you might have set when identifying the user.

Note: the chatMetdata is only supporting strings at the moment (Record<string, string>).

Txt.set('chatMetadata', { name: 'Marcel Panse', email: '[email protected]' })