# Get updated on urgent requests

{% hint style="success" %}
**Why you need this**

* Get alerted of urgent and high priority requests on your personal device
* Address these requests quickly
  {% endhint %}

In this use case, we want to get alerted to users who are facing technical difficulties that occur everyday. Here is a sample form below!

{% tabs %}
{% tab title="1. Trigger: FormKH" %}

## Connect the form you are receiving responses for

You're done with setting up the FormKH integration!

1. A drop down will appear (as seen in the screenshot below) if the test is a success

<figure><img src="/files/ugnRnv4CvYnDR1gRbHMP" alt=""><figcaption></figcaption></figure>

2. Go back to the Flow page
3. Click on 'Test step' button to see if Flow pulls in the right data. Data pulled in should be what you have just submitted.&#x20;
4. Click "Continue" button
   {% endtab %}

{% tab title="2. Action: Logic" %}

## Add logic to only get notified of urgent requests

**Choose app and event**

1. Select **Logic** as the app.
2. Select **Only continue if** as the action event.

**Set up action**

1. Select the variable that you want Logic to apply to. In this example, we will select question 4's answer variable.
2. Select the rule that you want to use. In this example, we will select **Is** and **equals**
3. Define the value that you want to compare the variable against. We only accept text input. In this example, the value will be **Every day**.

**Test action**

1. Click **Test step**.
2. If the test data pulled in from your FormKH submission **has met** the conditions, you’ll see a confirmation that the Pipe would **have continued**. \
   \
   If the test data pulled in from your FormKH submission **has not met** the conditions, you’ll see a confirmation that the Pipe would **not have continued**. <br>

You're done with setting up the conditions to be alerted!
{% endtab %}

{% tab title="3. Action: Telegram" %}

## Set up a Telegram bot to alert you on urgent requests

Before you can set up your Telegram step, you would need to [create a Telegram bot](broken://pages/NG7AsUKgWtQ5tfyDnYab)!&#x20;

**Setting up your pipe**

1. Choose **Telegram** as the app.
2. Choose **Send message** as the action event.

**Choose connection**&#x20;

1. Select the connection for your bot.&#x20;

**Set up action**

1. Under the **Chat ID** field, select the chat you want to send a message to whenever an urgent submission comes in. If you are sending to a group or channel, ensure that you have [added your bot to the chat](broken://pages/Vv33WWST64kgeTCZF5rQ#adding-or-re-adding-bots-to-groups-or-channels).

{% hint style="warning" %}
**Help! My chat does not appear in the dropdown list.**\
This dropdown list shows chats with recent activity in the past 24 hours. If your chat is missing try the following:

**For private messages,** send your bot a message directly.

**For group chats,** ensure your bot has been added to the group. Next, either send a message in the group chat (only works if your bot has [read permissions](#allowing-bots-to-read-group-messages)) or [re-invite your bot](#adding-or-re-adding-bots-to-groups-or-channels) to the group.\
**For channels,** ensure your bot has been added as an admin to the channel and send a message to the channel with your own telegram account.

Then, click on the refresh ↺ button on the right.
{% endhint %}

3. Type in the message you want to send in the **Message text** field.
4. Select if you would like to disable notifications.
5. Click **Continue.**
6. Then, click **Test Step** to verify that the message has been sent as you intended.

You're done with setting up alerts for urgent requests!
{% endtab %}
{% endtabs %}


---

# 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://guide.flow.gov.kh/use-cases/get-updated-on-urgent-requests.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.
