# Adding Chatbot Workflows

Wonderchat Workflows let you clearly define how your chatbot responds to specific scenarios using plain English. This feature is useful for setting up your chatbot to collect leads, call APIs, or give specific responses to certain user queries.

A workflow is made up of a single **trigger** followed by a series of **actions**. If the chatbot detects that a user’s message matches the conditions of the trigger, it will execute the defined actions.

This makes it easy to create consistent and predictable chatbot behaviour for a variety of tasks, while still allowing the chatbot to answer generic queries from its knowledge base and role prompt.


---

# 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.wonderchat.io/setup-guides/adding-chatbot-workflows.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.
