> For the complete documentation index, see [llms.txt](https://help.flochat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.flochat.ai/artificial-intelligence/openai-or-chatgpt/what-are-functions.md).

# What are Functions

{% embed url="<https://content.app-sources.com/s/35615459206875191/uploads/AI_SERIES/WHAT_ARE_FUNCTIONS-2923134.mp4>" %}

Functions are a super easy way to send users to different parts of your chatbot flows and also capture data like email addresses, phone numbers, and other important information using natural language. They provide a seamless and user-friendly experience for your audience.

{% content-ref url="/pages/8mIObI2rdYNqMMj7p0Uq" %}
[Functions in Flows](/artificial-intelligence/openai-or-chatgpt/what-are-functions/functions-in-flows.md)
{% endcontent-ref %}

{% content-ref url="/pages/l7YpNB9zwLagk9qHFLu6" %}
[Capturing Data](/artificial-intelligence/openai-or-chatgpt/what-are-functions/capturing-data.md)
{% endcontent-ref %}

{% content-ref url="/pages/zatsIGlrJp6NyF01VFUx" %}
[Generate function with AI](/artificial-intelligence/openai-or-chatgpt/what-are-functions/generate-function-with-ai.md)
{% endcontent-ref %}

{% content-ref url="/pages/jxzIRjwv0pjCzthB5WJH" %}
[Combine chat completions & Functions](/artificial-intelligence/openai-or-chatgpt/what-are-functions/combine-chat-completions-and-functions.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.flochat.ai/artificial-intelligence/openai-or-chatgpt/what-are-functions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
