- version: This is to identify the version of the request payload. Currently, this is always
1
, but you should check it anyway to ensure your agent doesn’t break when there are changes to the payload we send. When we do have multiple versions, and if you send back a400
status code from your webhook, we will retry with an older enabled version. - sessionId: This is the session ID that AgentReach will use to identify the session. You can use this string to query our API to manage this session, or talk to the user.
- endUserId: This is the user ID identifying the end user who started the session. If this is not known, this field will not be present in the input JSON.
- message: This is the raw message string sent by the end user to your agent.
- channel: This is an object containing the type of the communication channel, and the relevant user ID or email for that channel.