There’s a chat for that: Apple’s biggest platform opportunity yet
Matt Galligan

You should really check the Chinese application Wechat, they have done this about two years ago. And we called it “Wechat Public Platform”, lots of functions you mentioned above have been realized several months even years ago. The link is here:

Unfortunately, it seems they do not have an english page for that platform, but if you want to know more about it I would like to provide some help.