Skip to main content
Skip to content

Moodle installation

How to connect your Moodle site to Coassemble with the Coassemble plugin, from installing it and clicking Connect Coassemble through to adding your first Coassemble activity.

Install the Coassemble plugin on your Moodle site, click Connect Coassemble in its settings, sign in to Coassemble or create a free account, and approve your site. The plugin then sets itself up, with no API key to copy. Choose which builder features to offer, and your teachers can start adding Coassemble activities to their courses.

What do I need before I start?

  1. A Coassemble account, or create one as you connect. If you sign up while connecting, you get a free sandbox workspace. To connect a site to an existing workspace, you need to be an Owner or Developer there, and the workspace's plan needs API access.
  2. Check your site. It needs to be on Moodle 4.1 to 5.3 with PHP 8.1 or later, and served over HTTPS. Connect only works over HTTPS, and Coassemble uses it to send progress updates straight to Moodle.
  3. Turn on completion tracking. Go to Site administration, then Advanced features, and turn on Enable completion tracking.
  4. Get the plugin. Download it from the Moodle plugins directory, or install it from there straight into your site.

You'll need site administrator access in Moodle for every step below.

Step 1: Install the plugin

  1. Go to Site administration, then Plugins, then Install plugins, and upload the ZIP file.
  2. Follow the prompts and let the upgrade run to completion.

You can also unzip the plugin into a folder called coassemble inside your Moodle mod folder, then go to Site administration, then Notifications to finish the install. When you update the plugin this way, replace the whole folder instead of copying new files over the old ones.

Step 2: Connect it to Coassemble

  1. Go to Site administration, then Plugins, then Activity modules, then Coassemble.
  2. Under Connect to Coassemble, click Connect Coassemble. Coassemble opens in the same window.
  3. Sign in to Coassemble, or create a free account.
  4. Choose the workspace to connect, check the details, and click Approve.
  5. You're taken back to Moodle, where the settings page shows Connected to your workspace. Progress updates from Coassemble are set up at the same time.
  6. Click Run connection test. Both checks need to pass.

Your site gets an API key named “Moodle:” followed by your site's address. You'll find it in your workspace's developer console, and you can disconnect the site from there at any time. The workspace owner gets an email whenever a Moodle site is connected.

On a sandbox workspace, learners see a Test mode badge in their courses. To use the plugin with your learners, you need a paid Coassemble plan with API access and authoring. For plans, contact moodle@coassemble.com. Once your workspace is on a paid plan, go back to the plugin settings and click Reconnect, so your site switches to a live key.

Can I paste an API key instead?

Yes. Use this if your site can't be served over HTTPS, or you'd rather create the key yourself.

  1. In Coassemble, open Developer, then API keys, and click Create key. Copy the whole key straight away, as only a masked version is shown afterwards.
  2. On the plugin settings page, leave API base URL as https://api.coassemble.com and paste the whole key, starting with COASSEMBLE:, into API key.
  3. Save the key. This also sets up automatic progress updates from Coassemble, which needs your site to be on HTTPS.
  4. Click Run connection test. Both checks need to pass. The test also checks your progress updates are set up, and fixes them if needed.
  5. Click Save changes.

The Coassemble plugin settings in Moodle, showing the API base URL, the masked API key and the Run connection test link

Step 3: Choose your builder features

On the same settings page, under Course builder features, choose what teachers can use. Every feature is switched on to start with, so switch off anything you don't want to offer:

The Course builder features settings in Moodle, with AI generation, Google Drive import, OneDrive import, Narrations, Translations and Brand voice all switched on

Feature What it does
AI generation Lets teachers generate a course with AI, and use AI in the builder.
Google Drive import Lets teachers bring in content from Google Drive.
OneDrive import Lets teachers bring in content from OneDrive.
Narrations Adds voice narration to courses. Narration comes from your workspace's shared allowance.
Translations Lets teachers translate courses into other languages.
Brand voice Keeps AI-written content in your organisation's tone.

Narrations, Translations and Brand voice only work if your Coassemble plan includes them. The plugin can't check this, so switch off any your plan doesn't include.

Step 4: Add your first Coassemble activity

  1. As an editing teacher, add a Coassemble activity to a course.
  2. Give it a name, choose how to start (Start from scratch, Generate with AI or Use an existing course), then click Save and display.
  3. Build your course. If you chose an existing course, pick Use this course to share the original, or Make a copy to get a separate version for this activity.
  4. Publish the course from inside the builder.
  5. Open Manage content to check the course is linked and published.
  6. Log in as a student and complete the course, then check the gradebook and activity completion as the teacher.

Moodle's New Coassemble activity form, with a Name field and a Create flow set to Start from scratch

Teachers can also browse your workspace's courses before adding an activity, from More, then Coassemble course library in the course menu.

How do I control who can do what?

The plugin adds four Moodle permissions. Editing teachers and managers have all four by default, and students, non-editing teachers and guests can view activities. Change them with Moodle roles to suit your site:

Permission What it allows
mod/coassemble:addinstance Add a Coassemble activity to a course.
mod/coassemble:author Open the course builder.
mod/coassemble:manage Publish, copy, download as SCORM, see the progress report and refresh progress.
mod/coassemble:view Open the activity and take the course.

Frequently asked questions

Why can't I connect my site?

Connect needs your site and the API base URL to be on HTTPS. Your site's name also can't include “Coassemble”: change it in Site administration, then General, then Site home settings, and try again. If a workspace can't be chosen when you approve, you need to be an Owner or Developer there, and its plan needs API access. If the connection times out, go back to Moodle and click Connect Coassemble again. If you can't use Connect at all, paste an API key instead.

Why won't the connection test pass?

If you pasted a key, check you pasted the whole key, starting with COASSEMBLE:, and that it hasn't been deleted or replaced in Coassemble. If you used Connect, check the site is still listed in your workspace's developer console, or click Reconnect. Then run the test again.

How do I move from a sandbox to a paid plan?

Contact moodle@coassemble.com. Once your workspace is on a paid plan, click Reconnect in the plugin settings so your site switches to a live key, and the Test mode badge goes away.

Why is the builder or course showing a blank space?

Your site's security settings may be stopping Coassemble from loading in a frame. Check your site allows Coassemble to load, and that everything is on HTTPS. If it's still blank, contact us so we can check your site's address.

Why aren't grades or completion updating?

Make sure completion tracking is on and the learner has finished the course. Then open Manage content and click Refresh learner progress from Coassemble. If it keeps happening, check your site is on HTTPS and run the connection test again.

Why can't I select some courses in the library?

Some types of course, such as legacy courses and uploaded SCORM packages, can't be opened through the plugin. They still show in the library, with the reason they're unavailable.

The builder says my session has expired. What do I do?

Reload the activity to start a new session. Sessions renew while you're working, but end at most 24 hours after they started, so publish or save your work before leaving the builder open.

What if I still need help?

Contact your Coassemble contact or reach us through Get help, then Ask us in Coassemble. Include your Moodle, PHP and plugin versions, and what you were doing when it happened. Never include your API key.