Narrative Design Issue On WebGL

Hello,

I have an issue regarding narrative design on WebGL SDK, I have 2 scenes starting with the right (Blue) narrative design. After that I changed the scene, changing the narrative design to the left (Red) using trigger. In the beginning it works fine to welcome section, the AI talk but I notice the text doesn’t appear at the ChatBoxUI than after decision to change to next section (using decision by saying I’m ready) should have been to Main but it changes to First Fire on the right(Green) even though nothing connect both of them
Screenshot 2025-02-20 133852

Hello @dev2,

Could you show how you set this up in Unity?
Seeing your configuration would help us better understand the issue.

For the project default I follow this YouTube (https://www.youtube.com/watch?v=2F2_tjtu-lY)

In the 1st scene there’s 3 steps of trigger using Narrative Design Trigger

After it trigger go to each section (First Fire, 2nd Fire, 3rd Fire) And for the decision I am using script SendTextData to send and SendPlayerText for the UI for each interaction.

public void OnButtonClicked(string text) 
{ 
   _convaiNPC.SendTextData(text); 
   _convaiChatUIHandler.SendPlayerText("Fire have been extinguised"); 
} 

at the end of each section there is a move function for the NPC using (I follow YouTube https://www.youtube.com/watch?v=wmhoNXUhc1U)

public void MoveTo(GameObject destination)  
{ 
	 StartCoroutine(ActionsHandler.MoveTo(destination)); 
} 

After section End Tour the NPC will explain something and pop out UI come out when it pressed change scene to the 2nd Scene using

public void ChangeScene(int i) 
{ 
	SceneManager.LoadScene(i); 
} 

In the 2nd Scene I’m using the same method like 1st scene by using Trigger at first

After it trigger, it will go to the welcome section, in this section the NPC will explain about something. But what happened is in the welcome section the transcript doesn’t show in the chat box UI even though the NPC is talking. After the player said “I’m Ready” it should go to the Main section but it change to First fire Section

Thanks for the details.

If possible, could you please share all browser logs with me?

Here’s how to do it:

  1. Open your browser.
  2. Press F12 (or Right-click > Inspect) to open Developer Tools.
  3. Go to the Console tab.
  4. Right-click in the Console and select “Save as…” to download the logs.
  5. Share the file here.

This will help us investigate the issue more effectively.

Debug.doc (405.3 KB)
Sorry about the messy debug

I will try to reproduce this problem and get back to you as soon as possible.

Thank you for your patience.

Hello @dev2,

For the issue where the transcript doesn’t show in the Chat Box UI during the welcome section, please try adding this line to the Initialize method in your ChatBoxUI:

_currentSpeaker = Speaker.Player;

Regarding the problem with the Narrative Design not following the correct flow, I recommend testing it first in the playground to ensure everything is linked properly.

If you need further assistance, feel free to ask.

Hello,

for the transcript doesnt show has been solved, but the narrative design still has issue, I have try the demo narrative design it run with no problems, but everytime i use trigger on the 2nd scene after welcome section it just go to random section, so i create another character for the 2nd scene so it wouldn’t go to another random section but when i try it the debug show unknown section even though there were no unknown section created. It always happend when using trigger after changing scene. If i build each scene individualy it works fine. my current solution is using section by sending text using script to trigger the section at the start.



Console.doc (66.4 KB)

As mentioned in my previous message, please test the narrative design flow in the Playground. This will help you verify if the triggers work correctly. You can manually trigger them in the Playground to see how they behave.

Let us know how it goes.


on the playground works fine
this is the translated transcript of the chat
Transcript.txt (2.7 KB)