broidHQ / integrations

Connect your App to Multiple Messaging Channels with the W3C Open standard.
https://www.broid.ai
GNU Affero General Public License v3.0
745 stars 83 forks source link

More infos about actor #179

Open fdematos opened 7 years ago

fdematos commented 7 years ago

Overview

Get more informations about actor like gender and separate first_name, last_name. Facebook provide the gender, and in lot of language (French for example), we need to know the gender to adapt grammar rule when we are speaking to woman.

Separate first_name and last_name will allow to easily call the user by his first name.

killix commented 7 years ago

Thanks for your request. We will take a look to know what is the best way do that.

cc @dustinblackman

fdematos commented 7 years ago

What I found in Activity Stream documentation is we can use vcard field to add this kind of information. So In the parser of the messenger we should have something like that :

"vcard:first-name": R.path(['authorInformation', 'first_name'], normalized), "vcard:last-name": R.path(['authorInformation', 'last_name'], normalized), "vcard:gender": R.path(['authorInformation', 'gender'], normalized),