# Assert shape

## Introduction

You can use the **assert** shape is typically used for testing purposes -you can define a static payload which is used to validate that the current payload (i.e. the payload generated up to the point that the **assert** shape is encountered) is as expected.

{% hint style="info" %}
A single incoming payload for [any process flow shape](https://open.gitbook.com/~site/site_dIV1g/~/revisions/9dTvdvRJIRVZQXuBMMnJ/process-flows/building-process-flows/process-flow-shapes) should not exceed 500MB.

We recommend processing multiple, smaller payloads rather than one single payload (1000 x 0.5MB payloads are more efficient than 1 x 500MB payload!).

For payloads up to 500MB, consider adding a[ flow control shape](https://open.gitbook.com/~site/site_dIV1g/~/revisions/9dTvdvRJIRVZQXuBMMnJ/process-flows/building-process-flows/process-flow-shapes/standard-shapes/flow-control-shape) to batch data into multiple, smaller payloads. Payloads exceeding 500MB should be batched at source.
{% endhint %}

## Accessing assert payload shape settings

To view/update the settings for an existing **assert** shape, click the associated 'cog' icon:

<div align="left"><figure><img src="/files/NGczHtV6wbo9N9A0E7KY" alt="" width="327"><figcaption></figcaption></figure></div>

This opens the [options panel](#configuring-settings-for-a-new-manual-payload-shape) - for example: &#x20;

<div align="left"><figure><img src="/files/F5RIXtTpIzdfLSaANPOf" alt="" width="375"><figcaption></figcaption></figure></div>

## Configuring settings for a new assert shape

<details>

<summary><img src="/files/JOYoP4EdSu7WJ3CMdAAS" alt="" data-size="line"> Show me</summary>

![](/files/EjNOHxZrQke9la6MMLnm)

</details>

To configure an **assert** shape, all you need to do is paste the required payload and save the shape for example:

<div align="left"><figure><img src="/files/Wz8rl9fetIoUNlx10U5O" alt="" width="375"><figcaption></figcaption></figure></div>

{% hint style="info" %}
An **assert** shape can only be saved if a payload is present. If you add an **assert payload** shape  but don't have the required payload immediately to hand, you can just enter `{}`and save.&#x20;
{% endhint %}


---

# 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/process-flows/building-process-flows/process-flow-shapes/standard-shapes/assert-shape.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.
