Narrative Template Keys not working

I wanted to use the Narrative template keys , for which i followed the documentation

I have added a variable in Start Section of my narrative design, as shown below

Section Prompt above...

{sceneCondition}

Section Prompt below...
...

and While initializing the Convai Client I am also passing the narrativeTemplateKeys, a map<string, string> with a key named as "sceneCondition’. But, it is showing no effect on our conversation.

and again to debug, I also passed the “TimeOfDay” as shown in your example snippets, but the bot again responed with the wrong date and time.

Do let me know, How I can make it work ?
Its urgent to me as of now.

I figured it out, Actually key name was stated wrong in documentation.

Current Documentation ::

const client = new convaiClient({
  apiKey: 'your-api-key',
  characterId: 'your-character-id',
  narrativeTemplateKeys: getNarrativeTemplateKeys()
});

Correction ::

const client = new convaiClient({
  apiKey: 'your-api-key',
  characterId: 'your-character-id',
  narrativeTemplateKeysMap: getNarrativeTemplateKeys()
});```

Hello @shubham_dhiman,

Welcome to the Convai Developer Forum!

We’re sorry for the issue you experienced.
Thank you for pointing this out, and I’ll inform my team to update the documentation accordingly.

If you encounter any further issues or have additional feedback, feel free to share. We’re here to help! :blush:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.