Closed JijeshP closed 5 years ago
You can use the user attributes picture_url
to set a profile picture. You can use bp.users.updateAttributes
to update the attributes. See https://botpress.io/reference/modules/_botpress_sdk_.users.html#updateattributes
@rndlaine but it's not reflecting in HITL module.
its reading the name and profile pic from HITL session.
https://github.com/botpress/botpress/blob/master/modules/hitl/src/backend/db.ts#L47-L70
@rndlaine I have created a new action to resolve this issue..
knex('hitl_sessions')
.where({
userId: event.target,
botId: event.botId,
channel: event.channel
}).update({
full_name: full_name
}).then(() => {
console.log("Name updated");
});
@JijeshP yes indeed thats the quickest way to work around the issue.
I've created botpress/v12#647 to add this feature to HITL. Thanks for raising the issue!
What is the best way to update name and details in HITL session ?