# Connector / Mail Example

In this example we will create a workflow in Azure Logic App that sends out an email as soon as new response is recorded.

Start with a new logic apps in your Azure portal.

![](/files/-MhxSxB6udaK38aTOUqF)

In the Logic app designer of your Logic app select the ngSurvey connector that you have created.

![](/files/-MhxUFt8hGPtdtQ749Hv)

Select the On response submission trigger.

![](/files/-MhxUPGI9DHWGzm6qoi8)

Attach a connection to your connector. The API key can be found in the [developer tab](/personal-account/developer.md) of your [account ](/personal-account/account-settings.md)page.&#x20;

![](/files/-MhxUXzveEvHcQ50lmup)

{% hint style="warning" %}
The API key must be prefixed by the Bearer keyword. eg:\
Bearer YourAPIKey
{% endhint %}

Now that your connection is up and running you can select the survey that you want to monitor for new submissions.

![](/files/-MhxXzVQkT-Bv_ph1h0-)

For this simple example we will connect a Send Email connector, this connector will be triggered each time ngSurvey records a new respondent in the selected survey.

![](/files/-MhxYRsTNMbsGNimU_e2)

As you can see on the right you may also use any of the posted answers of the respondents in your connectors for further processing.


---

# 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.ngsurvey.com/personal-account/developer/powerapps-flow-integration/connector-mail-example.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.
