You can create automation in courses in the following steps below:
1. Select Courses from the Commerce tab on the left,
2. Click on the double arrow icon for more and select Automations.
3. Click the Add Automation button.
4. You can now select from the three new added triggers which are related to courses.
- User completes a course
- User completes a section
- User completes a lesson
5. Then you can add your Action. End Event
6. You can also add a new event as needed.
7. Publish your automation.