Nav mesh for enemy on a randomly generated map

I have a script for a randomly generated maze but I need to way add a nav mesh to the level for a enemy AI to follow any suggestions

This unity tutorial shows how to build navmesh at runtime:
https://learn.unity.com/tutorial/runtime-navmesh-generation#5c7f8528edbc2a002053b492