# Go to previous block

Usually, when a user asks a question, and this is not understood, they see a message like 'I did not understand'. To refresh the user's memory, you can repeat the last block again to the user, as shown below:

![](/files/-MX2PScKajnYaSgwAVAE)

What we see here is that the introduction has been created, and then the bot does not understand the user input 'test'. Then, after the 'not understood' message, the same message from before is shown again. This creates a full user experience and conversation flow. How to set this up is explained below:

## 1. Add variable to 'not understood'

In the 'not understood' bot message, create a new variable as shown below:

![](/files/-MX2PwV-U1Bfu4lym7xE)

Also make sure that the 'Go to' section of this block goes to a new Action block, called 'Go to previous block' in this case.

## 2. Create an Action block

In the 'Go to previous block' action, create the following:

![](/files/-MX2QEhKU8uI3RoDGtw2)

This makes sure that the bot goes to the previous block, using the variable that is set in the 'not understood' bot message. The code can be copied from below:

```javascript
const { prevDialog } = args;

ChatlayerResponseBuilder()
.setNextDialogState(args.prevDialog)
.send() 
```

Make sure to test out your new configuration in the emulator.

And that's it! With just two simple steps you have created a better 'not understood experience'. Make sure to also check out the other [articles ](https://docs.chatlayer.ai/tips-and-best-practices/not-understood-bot-dialog)written about the 'not understood' block.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.chatlayer.ai/buildabot/tips-and-best-practices/go-to-previous-bot-dialog.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
