> ## Documentation Index
> Fetch the complete documentation index at: https://docs-classic.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Debug Message

[Updated in 4.84](https://docs-classic.cognigy.com/release-notes/4.84.md)

![Debug Message Node configuration panel](https://mintcdn.com/cognigy-docs-legacy/RomCLoWcsmr9N2pz/_assets/ai/develop/node-reference/basic/debug-message.png?fit=max\&auto=format\&n=RomCLoWcsmr9N2pz\&q=85\&s=36dbaa49c1aa485ea766d4048c559692)

## Description

This Node sends a debug message to the Interaction Panel.
Debug messages help
you track the flow of data and diagnose issues
by providing real-time information about what's happening during the Flow execution.
To view the debug message, enable [debug mode](https://docs-classic.cognigy.com/ai/agents/test/interaction-panel/chat.md).

## Parameters

| Parameter | Type | Description |
| - | - | - |
| Debug Level | Select | The Debug message level. Select one of the following options:<ul><li>**Info** — info messages will be displayed with a blue background and contain general information. For example: `User successfully logged in`.</li><li>**Error** — error messages will be displayed with a red background to highlight issues. For example: `Failed to connect to the database`.</li></ul> |
| Header | CognigyScript | The header text of the debug message. This parameter is optional. Examples:<ul><li>`User Action`</li><li>`System Error`</li><li>`Database Connection`</li></ul> |
| Message | CognigyScript | The message text of the debug message. This parameter is mandatory. Examples:<ul><li>`User input received: {{input.text}}`</li><li>`Invalid phone number entered: {{profile.email}}`</li></ul> |

## Examples

> [accordion] Info Message
>
> To show that the message relates to user's actions, such as completing a task or making a selection, you can use the Debug Message Node with the header `User Action`.
> It can be helpful when a user fills out an [Adaptive Card](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/basic/say.md) form or clicks the [Submit](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/xApp/set-html-xApp-state.md) button in xApps to confirm an action.
>
> ```txt theme={null}
> Header: "User Action"
> Message: "User successfully completed the registration process"
> ```

> [accordion] Error Message
>
> To show that the message relates to an error related to database operations,
> use the Debug Message Node with the header `Database Error`.
> It can be useful for tracking errors that occur during database requests. For example, it can help identify issues when using [MongoDB](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/service/mongo-db.md) Nodes.
>
> ```txt theme={null}
> Header: "Database Error"
> Message: "Failed to retrieve user data"
> ```

## Alternatives

To debug a Flow when your AI Agent experiences issues on the production side, add a [Log Message](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/other-nodes/log-message.md) Node.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.