> For the complete documentation index, see [llms.txt](https://book.rochat.ai/rochat_book_en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.rochat.ai/rochat_book_en/how-to-create-a-scene-on-rochat/scenes-note-optional/how-to-use-cot-in-scene-notes.md).

# How to Use CoT in Scene  Notes?

CoT (Chain of Thought) is a logical method that involves step-by-step problem-solving. Applying CoT in scene prompts allows characters to exhibit deeper reasoning in complex situations, enhancing the realism of interactions.

For more about CoT definitions and tutorials, refer to: [**How to Use CoT in Character Note.**](https://rochat.ai/explore/100473974338973353)

## **How to Apply CoT Reasoning Rules in Rochat?**

**Example Scene Setting:**

{char} is a newly adult adventurer with an impulsive personality but a strong sense of justice. One day, {char} discovers a hidden passage rumored to hold treasures. The passage has lured countless explorers, but none have ever returned alive. Now, {char} and {user} stand at the entrance, debating whether to venture inside.

### **Steps: Breaking Down the Scenario**

Guide the character to analyze the situation step by step, considering both logic and emotions, before reaching a conclusion. Example:

```
[When {char} faces the decision of entering the hidden passage, follow these steps to reason:]

1. Assess Current Abilities — Do I have sufficient equipment and supplies? Can I and {user} handle potential dangers together?
2. Analyze Environmental Information — What threats might lie deeper in the passage? Are there clues to predict upcoming challenges?
3. Weigh the Consequences — Is the risk worth the potential reward?
4. Decide on an Action Plan — Based on the above factors, decide whether to proceed and propose specific actions.
```

Customizing a More Efficient CoT Template:

```
<thinking  
Step 1: Identify Character Goals — What does {char} aim to achieve?  
Step 2: Analyze Scene Information — What are the threats and opportunities inside the passage?  
Step 3: Emotional Analysis — What are {char}’s internal struggles?  
Step 4: Final Reasoning Conclusion — Based on reasoning, decide whether {char} should enter the passage.  
/>  

```

When using this template, the character's reply will include **thinking** processes. These thinking processes are invisible to the player but remain visible to the model, ensuring their influence on the dialogue.

{% hint style="warning" %}
**We usually place CoT reasoning within `< >` tags. This keeps the reasoning invisible to the player but effective for the model. As a creator, you can long-press the message box to view the raw output, allowing you to test and verify whether the CoT process meets your expectations.**
{% endhint %}
