> For the complete documentation index, see [llms.txt](https://doc.wearepatchworks.com/product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.wearepatchworks.com/product-documentation/developer-hub/custom-scripting/creating-and-testing-custom-scripts.md).

# Creating & testing custom scripts

## Introduction

As noted in our custom scripts introduction, you can create scripts in our proprietary script editor, using a range of languages.

If you're experienced in creating scripts for your Patchworks process flows and know exactly how to achieve what's needed, you can jump straight in and [create your script from first principle](/product-documentation/developer-hub/custom-scripting/creating-and-testing-custom-scripts/creating-a-script-manually.md)s. However, if you'd like some help, you can enter requirements and [ask our AI agent for assistance](/product-documentation/developer-hub/custom-scripting/creating-and-testing-custom-scripts/creating-a-script-with-ai.md)!

## Need to know

* The maximum memory size for a custom script is 512MB
* The maximum size of a custom script is 4GB
* Up to 5 AI requests can be made per day for any company profile, free of charge.
* A [subscription tier bolt-on](/product-documentation/getting-started/subscription-tier-limits.md) can be purchased if you'd like to increase this allowance.
* You can view the number of AI requests used and remaining from your [AI conversation history](/product-documentation/developer-hub/custom-scripting/creating-and-testing-custom-scripts/creating-a-script-with-ai/ai-conversation-history.md).
* AI prompts can be up to 1500 characters.
* Sample payloads for an AI request can be up to 6000 characters.

## How to create & test custom scripts

Please see the links below:

* [Creating a script manually](/product-documentation/developer-hub/custom-scripting/creating-and-testing-custom-scripts/creating-a-script-manually.md)
* [Creating a script with AI](/product-documentation/developer-hub/custom-scripting/creating-and-testing-custom-scripts/creating-a-script-with-ai.md)
* [Testing scripts](/product-documentation/developer-hub/custom-scripting/creating-and-testing-custom-scripts/testing-scripts.md)
