Hi,
As much as I can understand you already collect this data; name, email and phone number, with your optin form. So concerning that part all the script should do is email this data?
About many chat bots; which platform are these running on? Do they have an interface we can use to get the data they collect?