Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example

Code Block
languagejson
{
           "data" : {
                "replyTo" : "",
                "id" : "aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDUwODQxMzk0OTA4OjM0MDI4MjM2Njg0MTcxMDMwMDk0OTEyODE2NzQwNTg4MTcxMjQ0NzozMDMwMDcwMTg3NTA5MTIwMjkwMzUzNDkzMzgzMjEwNTk4NAZDZD",
       e857df30-76a4-4c6c-b4a5-4faed2ed6f45",
        "messageType" : "TEXT",
       
        "content" : {
       
            "text" : "prova1"Buongiorno, sono l'operatore Gabriele Verde, come posso esserle utile?",
            "user" : {
     
                  "id" : "4747235938674011USER_gverde1@acd.enghouse.com",
     
                  "isAgent" : true
false            }
        },
        "ts" :  1643191581119.0,
    },    "deliverySuccess" : true,
        "deliveryErrorReason" : "ts"
   : 1642604343631.0},
                "deliverySuccess"_id" : true,
     ObjectId("61f11d7cd42454470cb22da4"),
          "deliveryErrorReason"room" : ""
            },CHAT_DEFAULT_a098a0bc-b34c-452c-829c-1b03aa7a67ee"
}

Image message

Name

Type

Description

caption

Status
titleSTRING

Message caption

fileName

Status
titlestring

Contains name of the document/image message

documentType

Status
titlestring

Document format

user

Status
titleobject

Semplified user object containing only user id and isAgent properties of the user who sent the message.

Example

Code Block
languagejson
        {
            "data" : {
                "replyTo" : "",
                "id" : "03250778-0425-47c1-92c1-85d1840bef7c",
                "

...

messageType" : 

...

"

...

IMAGE"

...

,
                "

...

content" : 

...

{
                    "caption" : "",
      

...

Image message

...

Name

...

Type

...

Description

...

text

...

Status
titleSTRING

...

Only in “TEXT” message, contains the message sent

...

user

...

Status
titleobject

...

Semplified user object containing only user id and isAgent properties of the user who sent the message.

Example

Code Block
languagejson
{              "datafileName" : {"45971097-illustrazione-di-happy-emoticon-dà-pollice-in-su-isolato-su-sfondo-bianco.jpg",
                    "iddocumentType" : "781d3c44-f0b9-434b-9a09-6f5e5dcb69b0jpg",
         "messageType" : "IMAGE",         "contentuser" : {
  
         "caption" : "IMG",             "fileNameid" : "45971097-illustrazione-di-happy-emoticon-dà-pollice-in-su-isolato-su-sfondo-bianco.jpgUSER_DEFAULT_9a0a411c-f9c7-4af7-9754-024bf157a3ef",
            "documentType            "isAgent" : "jpg", false
                    }
            "user" : {  },
              "id" : "USER_DEFAULT_9a0a411c-f9c7-4af7-9754-024bf157a3ef"ts" : 1643191627987.0,
                "isAgentdeliverySuccess" : falsetrue,
            }    "deliveryErrorReason" : ""
     },       },
 "ts" : 1617789849117.0,         "deliverySuccess_id" : true,ObjectId("61f11d7cd42454470cb22da5"),
            "deliveryErrorReasonroom" : ""
CHAT_DEFAULT_a098a0bc-b34c-452c-829c-1b03aa7a67ee"
   },     "_id" : ObjectId("606d83d5d6e88353f88732ac"),
    "room" : "CHAT_DEFAULT_18234ff1-4a0e-4668-b002-16bf3cfbdb7d"
}

Document message:

Code Block
languagejson
}

Document message:

Name

Type

Description

caption

Status
titleSTRING

Message caption

fileName

Status
titlestring

Contains name of the document/image message

documentType

Status
titlestring

Document format

user

Status
titleobject

Semplified user object containing only user id and isAgent properties of the user who sent the message.

Example

Code Block
languagejson
{
    "data" : {
        "

...

replyTo" : 

...

"",
        "id" : "

...

16daf4d4-

...

a77f-

...

406f-

...

ab75-

...

0475f510bc95",
        "messageType" : "DOCUMENT",
        "content" : {
            "caption" : "

...

",
            "fileName" : "

...

WHATSAPP-TEMPLATE-AD-v09.xlsx",
            "documentType" : "

...

xlsx",
            "user" : {
                "id" : "USER_

...

gverde1@acd.enghouse.com",
                "isAgent" : 

...

true
            }
        },
        "ts" : 

...

1643191652417.0,
        "deliverySuccess" : true,
        "deliveryErrorReason" : ""
    },
    "_id" : ObjectId("

...

61f11d7cd42454470cb22da6"),
    "room" : "CHAT_DEFAULT_

...

a098a0bc-

...

b34c-

...

452c-

...

829c-

...

1b03aa7a67ee"
}

...

Link message:

Name

Type

Description

url

Status
titlestring

Contains the url of the link message

user

Status
titleobject

Semplified user object containing only user id and isAgent properties of the user who sent the message.

Example

Code Block
languagejson
{
    "data" : {
        "replyTo" : "",
        "id" : "

...

17909c52-

...

1f26-

...

402c-

...

90cb-

...

3106ba80bb3b",
        "messageType" : "LINK",
        "content" : {
            "url" : "https://www.google.it",
            "user" : {
                "id" : "USER_

...

gverde1@acd.enghouse.com",
                "isAgent" : 

...

true
            }
        },
        "ts" : 

...

1643191666618.0,
        "deliverySuccess" : true,
        "deliveryErrorReason" : ""
    },
    "_id" : ObjectId("

...

61f11d7cd42454470cb22da7"),
    "room" : "CHAT_DEFAULT_

...

a098a0bc-

...

b34c-

...

452c-

...

829c-

...

1b03aa7a67ee"
}

videoRequestedByCustomer message:

...