Click Deploy to Netlify
button, or:
- Fork this repository
- Sign up to netlify.com
- Choose
New site from git
option and follow the instructions
Bot admin enters their business hours; an attribute is set for 'open' or 'closed' based on the current time
Your JSON API is POST https://{your-netlify-app-name}.netlify.app/api/functions/business-hours
Parameters
tz
- time zone, either number in hours or name seeMonday..Sunday
- day working hour in formath:mmAM-h:mmPM
Attributes
This JSON API setups those attributes to bot user:
business
-open
if current time inside working hours,closed
otherwise
Look up an email address in the Shopify store to check if that user has placed an order before or not
Your JSON API is POST https://{your-netlify-app-name}.netlify.app/api/functions/shopify-check-customer-v2
Parameters
email
- user emailstore_url
- Shopify store urlpassword
- Shopify store password
Attributes
This JSON API setups those attributes to bot user:
customer
-existing
if email found in shop orders,new
otherwise
Create a unique discount code in Shopify using different parameters like % off or % off, days until expiration, one-time use or not, etc.
Your JSON API is POST https://{your-netlify-app-name}.netlify.app/api/functions/shopify-discount
Parameters
store_url
- Shopify store urlpassword
- Shopify store passwordtimezone
- user timezoneexpiration
- days until expirationdiscount_value
- amount of discountdiscount_type
- percentage or amountone_use_per_customer
- iftrue
then only one customer can use ittimes_code_can_be_used
- number of times discount can be used
Attributes
This JSON API setups those attributes to bot user:
discount_code
- allocated code,expiration_date
- discount code expiration date
Check if the input a user has entered is an email or not (checks to see if domain exists, not just that it uses an '@' symbol and '.') - also fixes validation loop with built-in email validation
Your JSON API is GET https://{your-netlify-app-name}.netlify.app/api/functions/verify-email
Parameters
email
- email
Attributes
This JSON API setups those attributes to bot user:
emailValid
-true
if email is valid,false
otherwise
Check if the input a user has entered is a phone number or not (checks to see if phone number is registered, not just that it contains a certain amount of digits) - also fixes validation loop with built-in email validation + removes any text and special characters in message
Your JSON API is POST https://{your-netlify-app-name}.netlify.app/api/functions/verify-phone
Parameters
phone
- phone
Attributes
This JSON API setups those attributes to bot user:
phoneValid
-true
if email is valid,false
otherwise