# Functions

The *Functions* integration allows for scripts to be discoverable through autocomplete while authoring scripts. Functions can be "disabled" by disabling the containing module.

1. Begin by adding a script library called "Functions" to a module. This can be created by the new module wizard.
2. Add a script to the "Functions" script library with a name that represents the purpose.
3. Use the command `Import-Function` to discover the available functions.

![Module Creation](/files/-LA37ZCnvLttqgYNoELr)

**Note:** It's best practice to create function scripts that follow the `Verb-Noun` pattern as outlined by Microsoft.

![Shared Functions Library](/files/-LA37ZDnl5fSJKWOhGxY)

![Autocomplete in ISE](/files/-LA37ZE4AXt_JxtoJUDg)

Here's a short video on authoring custom functions.

![Creating Functions](https://img.youtube.com/vi/bn4LSDF8p4g/0.jpg)

[Click for a demo](https://www.youtube.com/watch?v=bn4LSDF8p4g)


---

# 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.sitecorepowershell.com/modules/integration-points/functions.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.
