user_ipstate.variablesstate.variablesinteractlaunch.event.payload/variableswindow.voiceflow.chat.load({
verify: { projectID: 'YOUR_PROJECT_ID' },
url: 'https://general-runtime.voiceflow.com',
versionID:'production',
// pre-fill variables on launch
launch: {
event: {
type: 'launch',
payload: { user_ip: '123.123.123.123' } // <-- your captured IP
}
}
});POST https://general-runtime.voiceflow.com/state/user/{USER_ID}/interact
Headers: Authorization: VF.DM.xxxxx versionID: production
Body:
{
"action": { "type": "text", "payload": "Hi" },
"state": { "variables": { "user_ip": "123.123.123.123" } }
}