Richiesta Documento
===================
Il bot manda un messaggio dinamico dove richiede l'invio della foto della
propria carta d'identità.
.. code-block:: xml
9e036646-48a9-477d-a165-6feaea487c76
{
"arguments": {
"content": [
{
"type": "chat_text",
"text": "Inviami una foto del retro del documento d'identità"
}
],
"layout": {
"location": "in",
"selectionMode": "input",
"orientation": "vertical"
},
"inputData": {
"interaction": {
"type": "take_image",
"options": {
"acceptedFormat": [
"png",
"jpg",
"gif"
]
}
}
},
"data": {
"apiVersion": 3,
"appVersion": "0.0.1",
"os": "android",
"token": "token",
"useChatDynamic": true
}
},
"chat_type": "chat",
"creation_date": "2024-10-14T17:54:40.8070000Z",
"domain": "chat",
"identifier": "0b6685ba-7118-4a1d-84ba-138f328ec54e-211610540337024",
"language": "eng",
"type": "chat_dynamic",
"version": "1.0"
}
Il messaggio di risposta a questa richiesta è il seguente:
.. code-block:: xml
9e036646-48a9-477d-a165-6feaea487c76
{
"arguments": {
"filename": "documento.png",
"url": "https://xmpp-svil.monksoftware.it/api/v1/attachments/pictures/documento.png",
"thumbUrl": "https://xmpp-svil.monksoftware.it/api/v1/attachments/pictures/thumb_documento.png",
"caption": "Retro documento"
},
"chat_type": "chat",
"creation_date": "2024-10-14T17:54:40.8070000Z",
"domain": "chat",
"identifier": "0b6685ba-7118-4a1d-84ba-138f328ec54e-211610540337024",
"language": "eng",
"type": "chat_image",
"version": "1.0"
}