# Creating The Functions Consumer Contract

### Adding a Consumer

Navigate back to the subscription you just created. We need to authorize your freshly-deployed contract as an authorized consumer of your subscription's balance! Click the "Add consumer" button on the right:

<figure><img src="/files/4tn2uxsjtiUJvRwnR5rP" alt=""><figcaption><p>Adding a consumer to your subscription</p></figcaption></figure>

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

Next paste in your deployed `GettingStartedFunctionsConsumer.sol` contract's address  (#1) you copied earlier and  click "Add consumer" (#2):

<figure><img src="/files/mzKoCtmLGEz5Ir3wXS1q" alt=""><figcaption><p>Paste in your deployed contract's address and add the consumer</p></figcaption></figure>

Click the "Confirm" button in MetaMask to approve:

<figure><img src="/files/uQevB94c46MN91wKEUzQ" alt=""><figcaption><p>Approve to add a consumer</p></figcaption></figure>

After the consumer is added, click the "Close" button:

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

Refresh your Subscription dashboard page, and you will  see your new consumer of your Chainlink Functions Subscription!

<figure><img src="/files/1nbVCGcSLVdN215thaKG" alt=""><figcaption><p>Successfully added a consumer</p></figcaption></figure>

In the next section, you will need your Subscription ID so copy it and head back to Remix.

<figure><img src="/files/mDudyeKxoWJ2zDFWY9EW" alt=""><figcaption><p>Copy your Subscription ID</p></figcaption></figure>


---

# 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://cll-devrel.gitbook.io/bootcamp-2024/9.-off-chain-data-with-chainlink-functions/creating-the-functions-consumer-contract.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.
