AiCam records video automatically when an event is detected. Supported events are for example Human Detected, Vehicle Detected, Unfamiliar Face, etc. You can also record video manually when viewing a live-stream using the Record button on the live-stream viewer.
In addition, you can trigger video recording manually or automatically (based on configured time, location or other triggers) using Apple’s Shortcuts app. Check out this tutorial on automating AiCam with Apple's Shortcuts app.