# Payload script

## Introduction

The **payload script** tab is only displayed if you have added at least one[ payload-level custom script](broken://pages/XjuhzPfyPfhG1KOdE72F):

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

If you need to manipulate a source payload before it is pushed to the destination system, you can use a **payload script**. For further information please see our [payload-level scripts](broken://pages/XjuhzPfyPfhG1KOdE72F) section.


---

# 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://doc.wearepatchworks.com/product-documentation/patchworks-services/working-with-services/the-anatomy-of-a-service/payload-script.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.
