# Python

Скрипты на Python значительно расширяют возможности вашего ИИ-агента. Например, вы можете:

* [Отправлять e-mail](/functional/functions/sending-result/python/otpravka-e-mail.md) с настраиваемым содержимым
* [Выполнять REST-запросы](/functional/functions/sending-result/python/ispolzovanie-rest-api.md) (GET, POST, PUT, DELETE) к сторонним API
* [Интегрироваться с Google Таблицами](/functional/functions/sending-result/python/podklyuchenie-i-rabota-s-google-tablicam.md): читать, записывать и обновлять данные
* Выполнять сложные расчёты
* Подключаться к другим сервисам через их открытый API, если встроенной интеграции пока нет

Помимо параметров функции и системных полей, в `Python Script` также передаются пользовательские переменные агента и диалога через словарь `args`.

Подробности в статье [Python](/functional/functions/sending-result/python.md)


---

# 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.nextbot.ru/functional/integrations/python.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.
