Яндекс.Метрика
Back to blog
IntegrationsUpdated:

Academic leave and refund notification bot

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

ByMaria Pitateleva
Academic leave and refund notification bot
How to build your own bot

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" 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" 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:

{
  "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. It runs chains of actions on its own, right in threads.

Keep reading