# Condition

* Clicking the "Condition" button <img src="/files/rWcpsqcTS8isoH0v1vVh" alt="" data-size="line"> on the WorkFlow tool will immediately add one block to your whiteboard.

<figure><img src="/files/QP07uWYBica3shziWv0v" alt=""><figcaption><p>Block of Condition.</p></figcaption></figure>

* This component will have 2 options for you to choose:&#x20;
  * Input condition: create everything in the true-false structure, you can also use some dynamic variables to make your condition more specialized. There are 5 variables available:  {{customer.name}}, {{customer.access\_token}} {{customer.email}} {{customer.phone\_number}} {{message.content}}.
  * Select condition: based on the request of the user, we will continue to update the template of condition for you easy to use. Available in condition: At least one human agent is online. Please see how to use it [here](/getting-started/knowledge-base/escalate-to-a-human-agent.md).
* Click "Save changes" button to save your Workflow, and "Publish" if you want to activate this component for the chatbot using.


---

# 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://documents.cxgenie.ai/bots/workflow/workflow-components-1/condition.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.
