Web sdk - I cannot send custom data

I’m trying to reproduce this tutorial Kore.ai Web SDK Tutorial - Kore.ai Documentation , but when I try to use the variables in a Message component I got errors.
I try to use this
{{context.session.UserContext.customData.name}}
and {{session.BotUserSession.channels[0].botInfo.customData.name}}

and when I run the dialog in the chat simulator in the kore.ai website it throws an error:

“errors”:[{“msg”:“Cannot read properties of null (reading ‘BotUserSession’)”

if I try to run it from the Web sdk app, it happens the same (I cannot see the error detail, but the output in the chat is the same).

Any clue?