Chatbot context
Context key | Description | Source |
---|---|---|
context.customer.id | Customer ID | Customer |
context.customer.email | Email address that the customer used to send the request. | Customer (only email) |
context.customer.external_id | Can be accessed if you use externalContactId during window.amioWebchat.init() | Customer (only chat) |
context.customer.name | User's name | Customer (only Telegram, WhatsApp) |
context.customer.phone_number | WhatsApp user's phone number | Customer (only WhatsApp) |
context.customer.platform_id | WhatsApp user's platform ID | Customer (only WhatsApp) |
context.customerRequest.browserUrl | URL recorded when customer submits response via chat | Customer (only chat) |
context.customerRequest.subject | Subject of the last customer's request | Customer (only email) |
context.customerRequest.text | Text of the last customer's request | Customer |
context.chatgpt.response | Chatbot GPT's message (response) on customer's request | Chat GPT |
context.chatgpt.httpStatus | Http status code of response from chat GPT API | Chat GPT |
context.chatgpt.error | true / false, true in case request on chat GPT API fails | Chat GPT |
context.apiCall.body | A response data from custom remote API call | Make API Call |
context.apiCall.httpStatus | Http status code of response from remote API call | Make API Call |
context.apiCall.error | true / false, true in case request on remote API fails | Make API Call |
context.{input name} | Value provided by customer in Wait for customer input bubble. If validations are enabled for the input, the default name for the validation will be used automatically, for example: context.email | Wait for customer input |
Updated 25 days ago