Character saying a section prompt verbatim

I’ve had this happen several times over the last few months but can never consistently reproduce the issue. It seems to happen the more I talk to a character without updating which narrative flow section they are in.

An example of this is in Session ID: 850866755659755cd60b7b07d52dd4fd

From character ID: eb1017ca-cc5f-11ef-af3d-42010a7be016

In this case as part of a section I have in the prompt:

Talking about Robert confuses you because you don’t know why the user is talking like that. Wait for the user to tell you more about the Robert. Don’t ask the user any questions. Keep your response to 20 words or fewer.

You are feeling confused until the user tells you more about Robert.

Then during the conversation the AI Character said the prompt word for word.

I did experience this while talking to the character from inside Unity, not sure if that matters or not.

Hi, please note I’m no expert, I think the “Wait for the user…” bit won’t really work, in my experience the character will always respond by saying something. Maybe you could try a convaiNPC.InterruptCharacterSpeech(); to stop the expected reply being said.

Hey, thanks for the message. I don’t think that part of the prompt is what is causing the verbatim prompt dialog from the NPC. I’ve had this happen with other characters where that part isn’t included in the prompt.

When I’ve had them repeat what’s in a section word for word, if I recall correctly it was usually because I hadn’t set something up quite right with narrative design, and I do think sometimes it might have been caused by giving instruction in the section that they couldn’t adhere to, like stating don’t say anything. I could be wrong though but I have experienced it time to time but not for a good while.

Ok, interesting. I’ll try to look into that.