# Prompt Trigger Polling

{% hint style="success" %}
Leopard sends no user input when polling. It does add &#x61;**`command=prompt`**&#x72;equest parameter to each poll request.
{% endhint %}

{% hint style="danger" %}
Your Teneo solution must return the number of active flows to Leopard for every request. This is needed so that the polling is only active when there are no active flows (you are not mid dialog)&#x20;
{% endhint %}

{% code title="Post Processing" %}

```groovy
_.putOutputParameter("numActiveFlows", "" + _.getActiveFlows().size())
```

{% endcode %}

## Screenshots

<div align="left"><img src="/files/-M7TspN1yqvHGlTGCltQ" alt=""></div>

![A catch all flow that handles every poll request](/files/-Lru30ksgERXRD8vR2Hj)

![A contrived flow with a Prompt Trigger that only executes when the current minutes are even numbers ](/files/-Lru3BkXOnEce0haI_D-)

<div align="left"><img src="/files/-Lru5TM9qPptdizUvBYP" alt="Answers form Flows triggered via Prompt Triggers showing in Leopard"></div>


---

# 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://jolzee.gitbook.io/leopard/components/prompt-trigger-polling.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.
