Deep links from website

I am wondering how do I set up app.json to have the intent URL allow me to:

  • open the app if its installed.

  • open google play store if its no installed

I read the document but seems there is nothing related to this.