The character is simply saying “Start Message” instead of using the text passed to the API from my session.
Recent character changes
NONE
User message or prompt
The page passes a statement to the character, depending on the scenario being run. It is different for each scenario but the character is failing for every one.
Current response
The character is literally saying “Start Message” rather than having the given text substituted into the utterance.
Expected response
The character should be saying the text supplied from my session page. This was working and is not now - I did not make any changes to the code or the character.
Redacted logs or response
Short summary
The character is simply saying “Start Message” instead of using the text passed to the API from my session. Did something change in Convai?
What are you trying to do?
I pass the initial utterance to the character when starting the session. I use StartMessage as a key and the character is supposed to say this phrase as directed in the Narrative Design.
What happened?
What did you expect?
This was working before and now is not. I have not altered my code for this.
I checked the relevant documentation, resources, and similar forum posts before posting.
on
I confirm that I did not include API keys, tokens, passwords, secrets, private character data, private conversation logs, or customer data.
User: [SESSION_INIT]
Objection Jack: I appreciate you explaining that. I’m just not sure about committing to something new right now. It feels like a big step. ***THIS WAS NEVER SPOKEN BY THE CHARACTER
User: [An Event has occured]: {StartMessage} Then stop speaking and give the turn back to the User.
Objection Jack: {StartMessage}***THIS IS THE ISSUE
b2f4047371979cf5b01ff3289a9c3506
Same pattern as above, nothing is uttered by the character until it says “StartMessage”
57609f549ab053f51cb2c3122c92d86a
Same pattern as above, nothing is uttered by the character until it says “StartMessage”
narrativeTemplateKeysMap: new Map([
["StartMessage", "..."],
["Situation", "..."]
])
We build the Narrative Design variable as StartMessage and can confirm the character receives the intended text through the session prompt. However, when the Narrative Design trigger fires, Convai logs show the event still contains {StartMessage}, and the character literally says {StartMessage}.
Current web client code passes:
ctorOpts.narrativeTemplateKeys = { StartMessage: “…”, Situation: “…” }
But the Convai web SDK docs/types appear to expect:
narrativeTemplateKeysMap: new Map([[“StartMessage”, “…”], [“Situation”, “…”]])
We are pinned to convai-web-sdk@1.2.0. Can you confirm whether the UMD web SDK supports Narrative Design substitution through narrativeTemplateKeysMap, and whether the map must be passed at client construction, updated before invokeTrigger, or sent another way?