All jobs

How Do I Make a Canva Certificate for Every Graduate When a Course Ends? One Agent per Training Company, Signed Into Its Own Canva

A course platform makes one agent per training company, signed into its Canva, that fills the company's certificate template for every graduate when a cohort ends.

Run this on RushOpens the console with this prompt ready to send. Connect Canva there first.

What the agent does

This is for a company that sells course-management software to training providers: first-aid trainers, forklift and safety schools, software bootcamps, language schools. When a cohort finishes, the provider owes every graduate a certificate with their name, the course, the date, the hours and a certificate number, in the provider's own design. Today an administrator opens the Canva template and retypes forty names, one design at a time, and a typo in a name means a reprint and an apology. The platform already holds every one of those facts. It saves one agent as a template that names Canva and makes one agent from it per training provider, signed into that provider's own Canva, so each certificate is made from the provider's own brand template and stays among its own designs.

The platform connects its own Canva first with POST /me/connections {"type": "mcp", "name": "canva", "url": "https://mcp.canva.com/mcp", "auth": {"mode": "oauth"}} and saves the template with POST /o/{org}/agents, naming canva in connections. When a provider turns certificates on, the backend calls POST /o/{org}/agents {"template": "<template id>", "name": "certificates-<provider id>"}, then POST /o/{org}/agents/{agent}/connections {"type": "mcp", "name": "canva"}, and opens the authorize_url in a popup for the provider's administrator, who signs in on Canva's own page. The platform stores the agent id against the provider and registers no Canva app of its own.

On a run the agent calls search-brand-templates for the template name the provider chose, and stops if there is not exactly one match. It calls get-brand-template-dataset to learn the template's fields, which for a certificate are usually text fields such as the graduate's name, the course, the completion date, the hours and the certificate number. For each graduate in the request it calls autofill-design with those values and a title that holds the certificate number, then get-design-content to read the filled text back and compare it to what it sent, character for character, which is where a name with an accent or a hyphen would show a problem.

It creates one folder for the cohort with create-folder and moves every design into it with move-item-to-folder, so the provider finds the batch in one place. It exports each design as a PDF with export-design. Canva's tools page lists autofill-design at 60 requests a minute and export-design at 20, so the agent works through a large cohort in batches rather than all at once. It writes no text of its own on any certificate, and it shares nothing: the PDFs come back to the platform, which sends them to graduates only after the provider approves the batch.

Start it with one API call

POST https://api.phoenix.so/o/{org}/sessions with this body:

{
  "agent": "<agent id>",
  "input": "Make certificates for cohort C-2611, Forklift Operator Certification, completed 2026-11-18, 16 hours. Brand template: \"Certificate of Completion - A4\". Graduates (name, certificate number): \"Ana María Ortiz\", FL-2611-001; \"Dwayne O'Connell\", FL-2611-002; \"Lê Thị Hoa\", FL-2611-003; \"Priya Raman-Iyer\", FL-2611-004. Call search-brand-templates for the template name and stop with an error if there is not exactly one match. Call get-brand-template-dataset and map its fields to: name, course, completion date (write it as 18 November 2026), hours, certificate number. If a field has no value here, leave it empty. For each graduate call autofill-design with title \"<certificate number> <name>\", then get-design-content and confirm every field matches exactly. Call create-folder \"C-2611 certificates\" and move each design into it with move-item-to-folder. Export each design with export-design as PDF, at most 20 exports a minute. Return only JSON: {folder_id, certificates: [{certificate_number, name, design_id, edit_url, pdf_url, mismatches: [string]}], fields_empty: [string]}. Do not share, publish, comment on or resize any design, and write no text that is not given here."
}
  1. Get an API key. In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
  2. Send the request. POST the body in request.json to https://api.phoenix.so/o/{org}/sessions. The run starts in its own cloud sandbox.
  3. Read what came back. Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.

What comes back

The run makes a certificate for each graduate in a new Canva folder, each with its number, an edit link and an exported PDF. The answer is JSON in the session's result and in the run.completed webhook: the new folder's id and, for each graduate, the certificate number, the design id, the edit link from Canva, the PDF link from the export, and any field whose text did not read back as sent. The platform shows the batch on the cohort's page with a preview of each PDF and an Approve and send button for the provider.

What the provider checks before approving: every name, since a graduate's name is the one field they will look at first, and anything listed under mismatches or fields_empty; that a long name such as a double surname fits the template's text box, since a brand template's field keeps its own size; and the course title and hours against the course record. The certificates are drafts in the provider's own Canva until a person sends them, and the platform keeps its own copy of each PDF it receives.

Run it on every cohort that completes

When an instructor marks a cohort complete and the platform's pass rules have run, the backend sends one POST /o/{org}/sessions with the provider's agent id as agent, the graduates in input, and a request_id that is a UUID v5 of the cohort id and the list's version. A retried job then gets back the run it started, and a corrected list, such as one with a name fixed, is a new version and makes a fresh batch.

A provider that runs many short courses can finish a dozen cohorts on a Friday afternoon. Each is its own run, and runs past the API key's concurrent limit wait queued and start as earlier ones finish, which also keeps each provider's Canva account under Canva's per-minute limits.

The use case this job follows, with its automation and trigger: Run an agent per customer task.

Why run it on Rush?

Each provider signs in to Canva on Canva's own page, and that sign-in belongs to its agent alone, so one provider's run cannot open another's brand templates or designs, and the platform never handles a Canva token. The session's accounts names the Canva connection each run used, and every run has its own computer and a record of every tool call, which settles the question when a graduate's certificate shows the wrong date.

One template serves every provider, so a change such as adding a QR code field that links to a verification page is one PATCH to the template, reaching every provider's next batch. GET /o/{org}/sessions?agent=<agent id> lists one provider's runs with their total_cost_usd, so the platform can price certificates per graduate or include them in a plan.

Frequently asked questions

Does the training provider need a paid Canva plan?

For this job, yes. Canva's tools page lists autofill-design, search-brand-templates and get-brand-template-dataset under Canva Pro and above. A provider on Canva Free would need a different approach, such as copying a design with copy-design and editing its text in an editing transaction, which is slower and easier to get wrong.

Can the agent send the certificates to the graduates?

It is not given that job. Sending is the platform's own email, after the provider approves the batch, because a certificate is a record of a qualification and the provider is the one who vouches for it. The agent's part is making each certificate exactly as the record says.

What if a graduate's name has characters the template's font lacks?

The text still goes in, but the font may show a missing glyph. The agent reads the text back with get-design-content, which confirms the characters are right but not how they render, so the provider's check of each PDF is the step that catches it.

Can certificates carry a unique number someone can verify?

Yes, if the template has a field for it. The platform makes the number, stores it against the graduate, and sends it in the request, and the agent puts it on the certificate and in the design's title. Verifying it later is the platform's own page, not Canva's.

More Canva jobs

More jobs like this: Run an agent per customer task

Keep reading