This article explains how to pass the metadata when a new request comes from a chat widget from an external website.
...
Here metadata should be between <chat-widget> </chat-widget> tags
Here name indicates the field name and value indicates the field value and render indicates to show the field/value or not, render has only two values true/false.
...