Behaviours are a core part of an Interaction as they set the ground rules for how the AI will respond and interact with the user. Currently, there are a few predefined behaviours to which more will be added.

For example we have an interviewer profile, this profile is designed to be used for interview style interactions. It will ask the user a series of questions and then respond based on the answers. It will also keep track of the answers and use them to respond to the user.

See the Get available profiles for a list of all the available profiles.

Creating a new behaviors

Creating a new behaviour is simple, you just need to specify the behaviour parameter when creating your Session. Complex Behaviours can be built ontop any of the existing behaviour profiles. Although we recommend you use the base behaviour profile when creating a session with a custom behaviour.

See Getting Started for more information on how to create a session.

When creating a session with custom behaviour you payload should look something like this:

    const options = {
        profile: 'base',
        behaviour: 'Assume the role of a detective and solve the case.\nAsk as many question as neccessary.',