send_bulk_messages_from_list
Send personalized bulk messages to Canvas recipients using templates. Preview first, then confirm with a token to deliver.
Instructions
Send customized messages to multiple recipients using templates.
Two-step by design. Call it without a confirmation_token to get a preview (recipient count, rendered sample message) plus a token; show that preview to the educator, then call again with the token AND identical arguments to actually send. The token expires, is single-use, and is void if any argument changed since the preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "sync" or "async" | sync |
| context_code | No | Course context | |
| body_template | Yes | Body with placeholders (e.g., "Hi {name}, you have {missing_count}...") | |
| recipient_data | Yes | List of dicts with recipient info and template variables | |
| subject_template | Yes | Subject with placeholders (e.g., "Reminder - {missing_count} reviews") | |
| course_identifier | Yes | Course code or Canvas ID | |
| confirmation_token | No | Token from the preview call; omit to preview |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||