/npc/generateFriend

Generates a new persona for the user. Has 2 main requirements:

  1. userId

  2. expertJob

expertJob could be anything the persona is meant to do or be. It could be a name or a skill the persona is meant to follow.


const newGroup = await backend.post('/npc/generateFriend', {
      userId: '<User ID',
      expertJob: 'someone funny',
}).catch((err) => {/** Do something **/});

Returns the new group with a group name, groupId, and npcId. Given this information, new message could now be generated within the group using the user information.

Last updated