Update author's attributes

Use the Bot v3 API to have the bot update both the author CRM attributes and author attributes

Details

Update author CRM attributes with a PUT request to /bots/v3/authors/attributes.

{
    "type":"author_attributes",
    "coordinate":{
      "companyKey":"<company-key>",
      "networkKey":"brandmessenger",
      "externalId":"<external-id>",
      "messageId":"<message-id>",
      "botId":"<bot-id>",
      "scope":"PRIVATE"
      }
    },
    "author":{
      "id":"<author-id>"
    },
    "payload":{
        "handles":{  
            "crm":[  
            {  
                "id":"<external-crm-id>",
                "networkinstance":"<identifier-for-external-crm>",
                "crmProperty1":"value"
            }
            ]
        }
    }
}
{
    "type": "author_attributes",
    "coordinate": {
        "companyKey": "<company-key>",
        "networkKey": "brandmessenger",
        "externalId": "<external-id>",
        "networkInstance": "<network-instance-url>",
        "messageId": "<message-id>",
        "botId": "<bot-id>",
        "scope": "PRIVATE"
    },
    "author": {
        "id": "<author-id>"
    },
    "payload": {
        "attributes": {
            "birthday" : ["<birth-date-of-the-author>"],
            "occupation" : ["<author-occupation>"],
            "name" : ["<name-of-the-author>"],
            "socialnetwork" : ["instagram"],
            "attributeproperty1" : ["value"]
        }
    }
}

Author CRM JSON payload fields

type

The payload type. Always author.

coordinate

A Coordinate object. This is object contains details about the bot and the message in context. It is used by Khoros Care.

author

An Author object representing the message author on the source channel.

payload

Author CRM update payload. Consists of a handles object and arbitrary key-value properties for the author.

payload.handles

Pass the CRM handle(s) for the author in a crm subobject.

  • id - The external CRM ID
  • networkinstance - The identifier for the external CRM system.

Additional key-value properties that are supported for the networkinstance can be set here as well.


Author Attributes JSON payload fields

FieldDescription

type

The payload type. Always author.

coordinate

A Coordinate object. This is object contains details about the bot and the message in context. It is used by Khoros Care.

author

An Author object representing the message author on the source channel.

payload

Author CRM update payload. Consists of a handles object and arbitrary key-value properties for the author.

payload.attributes

Pass the different author attributes such as name, occupation, birthday.
Additional key-value properties that are supported for the networkinstance can be set here as well.
Language