# Chainlink Guide

<figure><img src="/files/7jtz2e1Fxb1C9avSPeHD" alt=""><figcaption></figcaption></figure>

\[0] When a transaction is submitted, it triggers a request on the Consumer smart contract. The JobID and input parameters are specified.

\[1] The Consumer smart contract sends this request to a specific Oracle smart contract with the input parameters and payment in LINK.

\[2] The Oracle smart contract receives payment in LINK for the request and passed it to a Chainlink Node.

\[3] Chainlink Node receives a request and executes it by initiating the job/external adapter specified in the Consumer contract.

\[4] Chainlink Node requests a Third-Party API premium or free data with the input parameters and receives the expected response.

\[5] Chainlink Node parses and encodes the response, preparing the data to be committed on-chain.

\[6] Chainlink Node Wallet invokes the callback function on the Oracle Contract and pays the transaction gas fee on specific blockchain.

\[7] Oracle smart contract commits the prepared data on-chain writing it to the Consumer smart contract.

\[8] Consumer smart contract receives the fulfilled request making the data available to be read on-chain.


---

# 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://www.oraclelabs.link/technical/chainlink-guide.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.
