## Zoho Inventory Documentation Index

Access the complete documentation index at:
https://www.zoho.com/en-fr/inventory/llms.txt

Use this file to discover all available documentation pages before proceeding.

[Back](./)

# How do I create a custom function?

 ![](/inventory/images/ue-resources/llm-utility-menu/sparkle-ai.svg) Explore With AI ![](/inventory/images/ue-resources/llm-utility-menu/dd-arrow.svg) 

*   [Open in ChatGPT (opens in new tab)](https://chatgpt.com/?prompt=Analyze+the+content+of+https%3A%2F%2Fwww.zoho.com%2Fen-fr%2Finventory%2Fkb%2Fautomation%2Fcustom-function.html+and+understand+it+thoroughly+so+I+can+ask+questions+about+it.)
*   [Open in Claude (opens in new tab)](https://claude.ai/new?q=Analyze+the+content+of+https%3A%2F%2Fwww.zoho.com%2Fen-fr%2Finventory%2Fkb%2Fautomation%2Fcustom-function.html+and+understand+it+thoroughly+so+I+can+ask+questions+about+it.)
*    ![Copy for LLM](/inventory/images/ue-resources/llm-utility-menu/copy.svg) Copy for LLM
*    [![View as Markdown](/inventory/images/ue-resources/llm-utility-menu/md.svg) View as Markdown (opens in new tab)](/en-fr/inventory/kb/automation/custom-function.md)

To create a custom function in Zoho Inventory:

*   Go to **Settings** in the top right corner of the page.
*   Under the _Automation_ tab, click **Workflow Actions**.
*   On the Workflow Actions sidebar, select **Custom Functions**.
*   Click **\+ New Custom Function**.
*   Provide mandatory details such as the **Function Name** and the **Module** in which you want to create a custom function.
*   Now, enter or drag and drop your preferred parameters and conditions from the left sidebar of the script box. Once you complete the [deluge script](/deluge/)., click **Save**.

The new custom function will be saved, and you can set up a workflow rule with specific conditions to trigger it. Here’s how:

*   Go to **Settings** in the top right corner of the page.
*   Under the _Automation_ tab, click **Workflow Rules**.
*   Create a new workflow and set the triggers based on which you want your workflow to be executed.
*   Click **\+ Add New Action** and select **Immediate Actions**.
*   From the dropdown, select **Custom Functions** and associate your custom function with it.
*   Click **Save**.

Whenever the set conditions are met, the workflow rule will be triggered, which in turn will execute the custom function.