# AI Mega Prompts
The idea of "AI Mega Prompts" is to use a script or program to find a set of notes/documents, and concatenate all of those (along with their metadata and links) to a single text file.
These files can be leveraged to pass a lot of information in one go to [[Large Language Models (LLMs)]]. This works with most if not all AIs.
## How to create AI Mega Prompts
Tools such as [[Code2Prompt]] and [[files-to-prompt]] can be used to create such files easily.
For example, using [[Code2Prompt]], I've created a script that takes all the notes in specific folders (and sub-folders), and also by following the links starting from a specific note. I use that with my [[Map of Content (MoC)|Maps of Content (MoCs)]], so that I can create mega prompts for specific topics I'm interested in. Thanks to that script, I can create such files for projects, for topics, etc.
This enables me to share all of the relevant knowledge I have about X with any AI that supports uploading files (i.e., most if not all), and to leverage that knowledge easily.
I shared a copy of that script here: https://gist.github.com/dsebastien/a047352d8dc23166228510055ef8ec7c
## Related
- [[AI Assistants]]
- [[AI Master Prompt]]
- [[AI Prompts]]