Integrations February 5, 2024Updated: August 27, 2026

# Academic leave and refund notification bot

> Automate how mentors get notified when students take academic leave or request a refund. Tips and guides from the Pachca team

Источник: https://pachca.com/en/blog/bot-opoveshcheniya-ob-akademah-vozvratah

## Automate how mentors get notified when students take academic leave or request a refund

By Maria Pitateleva

![Academic leave and refund notification bot](https://pachca.com/blog/bot-opoveshcheniya-ob-akademah-vozvratah.webp)

[How to build your own bot](https://dev.pachca.com/guides/bots/overview?utm_source=pachca.com&utm_medium=blog&utm_campaign=dev-portal)

A guide to Pachca bots with events, API methods and code examples

When a student realizes they're struggling with the program and need a break, or decides the field isn't for them, their assigned mentors need to know. Here's how to automate notifying mentors about academic leave and refunds.

Use the API with an **access\_token** to connect a chatbot to the internal services where students are assigned to mentors. Use the "[New message](https://dev.pachca.com/api/messages/create)" method to send updates on a student's status to the mentor's direct messages. To find the user (mentor) ID in Pachca, use the "[List employees](https://dev.pachca.com/api/users/list)" method and pass the mentor's email.

The message about the student's status can include:

- the student's request (academic leave or refund)
- answers to the questions from the academic leave or refund form
- a link to the task for processing the request

**Example request:**

```json
{
  "message": {
    "entity_type": "user",
    "entity_id": <user_id>,
    "content": "Student {{student_name}} submitted a request for {{education_status}}.
    Request form data: {{form_data}}.
    [Link to the task]({{task_link}}) for processing the request."
  }
}
```

With this integration, mentors and teachers always know how many students are currently active. And if you want to automate even more routine work, see [how the AI agent works in Pachca](https://pachca.com/en/blog/ai-agent-v-korporativnom-messendzhere). It runs chains of actions on its own, right in threads.
