# Prompt Chaining

Prompt chaining is the use of multiple requests and operators to get more specific information, add on information, or apply different processes to a root request in a single prompt.\
\
Let’s look at one of the examples from the above section:<br>

{% code overflow="wrap" %}

```
prompt: 
update the http request to return the data from the for loop response above and merge the for loop into the script
```

{% endcode %}

| Root request                                                                | Operator | Secondary request                  |
| --------------------------------------------------------------------------- | -------- | ---------------------------------- |
| update the http request to return the data from the for loop response above | and      | merge the for loop into the script |

&#x20;

In the example above, the secondary request is being used to apply a consolidation process to the root request.


---

# 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.gdf.ai/gdf-full-stack-engineering/prompting/prompt-chaining.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.
