# Assign a Mariana Tek substitute instructor and email the class

> An instructor calls in sick. The agent puts a sub on each of their Mariana Tek classes and emails every roster, since a sub alone sends no email.

Source: https://cotlet.dev/integrations/mariana-tek-api-mcp-server/substitute-instructor-notify-class

At 6am the instructor texts that they are sick. Someone has to find every class they teach that day, at every location, set a substitute on each in Mariana Tek, and then tell the people who booked for that instructor.

Cotlet does it in your own Mariana Tek account with list\_locations, list\_classes, assign\_substitute and message\_class, called by your AI agent, an n8n workflow or a script.

[Request access](https://cotlet.dev/app/signup?app=mariana-tek) [All Mariana Tek tools](https://cotlet.dev/integrations/mariana-tek-api-mcp-server)

Hosted · nothing to install or maintain

Official options

## Can Mariana Tek do this on its own?

Mariana Tek lets staff add a substitute and message a class from Admin, one class at a time, and it does not email participants about a substitution (checked 12 Oct 2026). Its text messages go to one customer at a time, from the roster or the profile. There is no self-serve API for studios; credentials come from the Integrations Team.

By hand

## How you do it in Mariana Tek today

1. Open Schedule in the left-side menu of Mariana Tek Admin and look through the day for the instructor's classes, location by location.
2. Select a class and click Edit Class, then Add Substitute, search for the substitute's name, select them and click Update Class.
3. On the class roster, click the three vertical dots and choose Message Class to write to everyone in it.
4. Repeat both screens for each class. Mariana Tek sends no email when a substitute is added, so a class that gets the sub but not the message leaves customers expecting the original instructor.

With an agent

## How to assign a Mariana Tek substitute instructor and email the class

Prompt

```
Alex is sick. Put Taylor Kim in as sub on all of Alex's classes Thursday and email each class that Taylor is teaching.
```

1. 01  
### Find every affected class  
The agent runs list\_classes for each location from list\_locations, filtered to the sick instructor and the dates you gave. It lists what it found before changing anything, so an evening class at the second studio is not missed.
2. 02  
### Check the sub is free  
If the substitute already teaches at an overlapping time, or at another location too close to the class to travel, the agent leaves that class out and asks who should cover it.
3. 03  
### Swap first, then email, class by class  
For each class the substitute is set before the message goes out, so no roster hears about a sub who is not on the class. If setting the sub fails, that class gets no email.
4. 04  
### Keep the email short and accurate  
The draft says who is teaching and that the time and room stay the same. It does not promise a free cancellation unless you add that, because late cancel rules still apply.
5. 05  
### Skip classes already underway  
A class that has started is left alone; the agent reports it so you can tell the room in person.

### What you get back

Example data

```
Alex Rivera, Thu 15 Oct: 3 classes found at 2 locations.
HIIT 45, 7:00, Downtown: sub Taylor Kim set, email sent to 18 (16 booked, 2 on the waitlist).
Pilates Sculpt, 12:00, Downtown: sub Taylor Kim set, email sent to 9.
HIIT 45, 18:00, Riverside: skipped, Taylor teaches Barre at Downtown at 17:30. Who should cover it?
```

### Other ways to ask

- Sam is out all next week. Put Jordan on Sam's morning classes and Casey on the evening ones, then email each class.
- Set Taylor as sub on Alex's Thursday 7am but do not email anyone; the class will hear it at the door.
- Find every class Alex teaches this Thursday and Friday and draft the sub email for each; I will pick the subs.

Before you automate it

## What Mariana Tek allows, and what to know first

- Mariana Tek shows (Sub) next to the name on the Admin schedule only; the public schedule swaps in the substitute's photo and bio instead.
- Message Class emails in Mariana Tek go out from the studio's default address, not from the employee who sends them.
- Mariana Tek's Message Class reaches every customer in the class, waitlist and standby reservations included.
- Adding a substitute in Mariana Tek needs the can\_manage\_schedule permission; emailing every customer in a class needs can\_manage\_schedule together with can\_manage\_class\_sessions.

assign\_substitute and message\_class ask for your OK by default. To run it weekly without you, switch confirmation off for those tools in your dashboard.

Sources: [How do I make a substitution for a class? (Mariana Tek help)](https://support.marianatek.com/en/articles/1985873-how-do-i-make-a-substitution-for-a-class) · [How do I message a class? (Mariana Tek help)](https://support.marianatek.com/en/articles/1987093-how-do-i-message-a-class) · [How can I send text messages to customers? (Mariana Tek help)](https://support.marianatek.com/en/articles/12060627-how-can-i-send-text-messages-to-customers) · [What are Role Permissions? (Mariana Tek help)](https://support.marianatek.com/en/articles/6873487-what-are-role-permissions)

REST

## Call assign\_substitute from a script

curl

```
curl https://cotlet.dev/api/v1/mariana-tek/assign_substitute \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"class_id":"418230","instructor":"Taylor Kim"}'
```

Example response

```
{
"class_id": "418230",
"class": "HIIT 45",
"instructor": "Taylor Kim",
"previous_instructor": "Alex Rivera",
"customers_notified": false
}
```

MCP: add https://cotlet.dev/mcp/v1 with the same key; the tool is mariana-tek\_assign\_substitute. Example data.

[Schedule it in n8n, Make, Zapier or cron](https://cotlet.dev/integrations/mariana-tek-api-mcp-server#automations)

Tools

## Mariana Tek tools this automation uses

__Cotlet Mariana Tek tools used to assign a Mariana Tek substitute instructor and email the class__
| Tool | Parameters |
| ------------------ | ---------------------------------- |
| list\_locations | none |
| list\_classes | location\_id, from, to, instructor |
| assign\_substitute | class\_id, instructor |
| message\_class | class\_id, message |

[All 15 Mariana Tek tools with descriptions](https://cotlet.dev/integrations/mariana-tek-api-mcp-server#tools)

## Frequently asked questions

### Can the agent text the class instead of emailing it?

No. Mariana Tek has no group text for a class: texts go one customer at a time from the roster or the profile, need the can\_manage\_sms permission and a Twilio-compliant Xplor Growth setup, and stop at 1,600 characters. Cotlet has no SMS tool, so the agent uses Message Class email.

## More Mariana Tek automations

- [Book a customer into a Mariana Tek class from an email or text](https://cotlet.dev/integrations/mariana-tek-api-mcp-server/book-customer-into-class)
- [Cancel Mariana Tek reservations without a late cancel fee](https://cotlet.dev/integrations/mariana-tek-api-mcp-server/cancel-reservations-without-fee)
- [Give Mariana Tek complimentary credits to everyone in a class](https://cotlet.dev/integrations/mariana-tek-api-mcp-server/give-complimentary-credits)
- [Mariana Tek API and MCP server: every tool](https://cotlet.dev/integrations/mariana-tek-api-mcp-server)
- [All use cases](https://cotlet.dev/use-cases)

## Give your agent access to Mariana Tek.

Free 7-day trial with 5,000 credits, no card needed. Cotlet is independent and not affiliated with Mariana Tek.

[Request access](https://cotlet.dev/app/signup?app=mariana-tek)
