Chatbot context

Context keyDescriptionSource
context.customer.idCustomer IDCustomer
context.customer.emailEmail address that the customer used to send the request.Customer (only email)
context.customer.external_idCan be accessed if you use externalContactIdduring window.amioWebchat.init()Customer
(only chat)
context.customer.nameUser's nameCustomer
(only Telegram, WhatsApp)
context.customer.phone_numberWhatsApp user's phone numberCustomer
(only WhatsApp)
context.customer.platform_idWhatsApp user's platform IDCustomer
(only WhatsApp)
context.customerRequest.browserUrlURL recorded when customer submits response via chatCustomer
(only chat)
context.customerRequest.subjectSubject of the last customer's request Customer (only email)
context.customerRequest.textText of the last customer's requestCustomer
context.chatgpt.responseChatbot GPT's message (response) on customer's requestChat GPT
context.chatgpt.httpStatusHttp status code of response from chat GPT APIChat GPT
context.chatgpt.errortrue / false, true in case request on chat GPT API failsChat GPT
context.apiCall.bodyA response data from custom remote API callMake API Call
context.apiCall.httpStatusHttp status code of response from remote API callMake API Call
context.apiCall.errortrue / false, true in case request on remote API failsMake 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