Chatbot education

ūüĎČ Chatbot videos

ūüĎ©ūüŹľ‚Äćūüéď Bot Academy

Activechat Essentials

E-commerce Chatbots

Advanced Chatbot Tools

Tracking code installation

Tracking page visits

Natural Language Chatbots

Intents and Entities

NLP contexts

Building Dialogflow agent and connecting to Activechat

Sending user input to NLP engine

Triggering bot skills by intents and events

Working with entities

Slot filling

Using contexts

NLP best practices 

Complete list of system variables

Here is the complete list of system variables and events that you can use in your bots.

Variables

General variables

  • $_last_error¬†– last runtime error description
  • $_random¬†– random value from 0 to 1
  • $_year¬†– current year
  • $_month¬†– current month (1-12)
  • $_date¬†– current date (1-31)
  • $_day¬†– current day of the week (1-7)
  • $_hour¬†– current UTC time (hours) (0-23)
  • $_minute¬†– current UTC time (minutes) (0-59)
  • $_second¬†– current UTC time (seconds) (0-59)
  • $_event_ + + _payload¬†– ref or payload for specific event
  • $_last_user_input¬†–¬†last message received from the user
  • $_last_user_input_ts¬†– timestamp of last user message
  • $_last_btn_pressed¬†– last button pressed by the user
  • $_last_btn_pressed_ts¬†– timestamp of last button press

Messenger specific – Facebook Messenger

  • $_id¬†– page-specific user ID
  • $_name¬†– user’s full name
  • $_first_name¬†– users’s first name
  • $_last_name¬†– user’s last name
  • $_locale¬†– user’s locale
  • $_timezone¬†– user’s timezone
  • $_src

Messenger specific – Telegram

  • $_id¬†– Telegram user ID
  • $_telegram_userid
  • $_telegram_username¬†– Telegram username
  • $_telegram_first_name¬†– user’s first name
  • $_telegram_last_name¬†– user’s last name
  • $_telegram_language_code¬†– user’s language code
  • $_telegram_is_bot¬†– user’s bot attribute
  • $_first_name¬†– user’s first name
  • $_last_name¬†– user’s last name
  • $_src

Messenger specific – Twilio SMS

  • $_id¬†– Twilio user ID
  • $_twilio_user_phoneno¬†– Twilio user’s phone number
  • $_twilio_bot_phoneno¬†– Twilio bot phone number
  • $_twilio_serviceSid¬†– Twilio Messaging Service SID
  • $_first_name¬†– user’s first name
  • $_last_name¬†– user’s last name
  • $_tags¬†– user’s tags
  • $_src

General e-commerce (product galleries)

  • $_selected_category_id
  • $_selected_category_slug
  • $_selected_category_title
  • $_selected_product_id
  • $_selected_product_slug
  • $_selected_product_title
  • $_selected_product_description
  • $_selected_product_price
  • $_selected_product_url
  • $_selected_product_image
  • $_selected_product_inv_qty
  • $_selected_product_var_types
  • $_selected_product_var_ids¬†– list of variation IDs for selected product. Contains single variation ID if there are no product variations. Use it to add single-variation products to shopping cart in Shopify integrations.
  • $_selected_var_id
  • $_selected_var_product_id
  • $_selected_var_title
  • $_selected_var_description
  • $_selected_var_price
  • $_selected_var_url
  • $_selected_var_image
  • $_selected_var_inv_qty
  • $_woo_error
  • $_shopify_error

Shopping cart specific

  • $_cart_total_qty¬†– total amount of items in shopping cart
  • $_cart_total_sum¬†– total value of shopping cart
  • $_selected_item_id
  • $_selected_item_slug
  • $_selected_item_price
  • $_selected_item_title
  • $_selected_item_image_url
  • $_selected_item_url
  • $_selected_item_description
  • $_selected_item_quantity
  • $_order_id
  • $_order_total
  • $_order_tax_total
  • $_order_shipping_total

WooCommerce specific (woo_customer_created and woo_customer_updated events)

  • $_woo_customer_id
  • $_woo_customer_email
  • $_woo_customer_first_name
  • $_woo_customer_last_name
  • $_woo_customer_role
  • $_woo_customer_username
  • $_woo_customer_avatar_url
  • $_woo_customer_billing_first_name
  • $_woo_customer_billing_last_name
  • $_woo_customer_billing_company
  • $_woo_customer_billing_address_1
  • $_woo_customer_billing_address_2
  • $_woo_customer_billing_city
  • $_woo_customer_billing_state
  • $_woo_customer_billing_postcode
  • $_woo_customer_billing_country
  • $_woo_customer_billing_email
  • $_woo_customer_billing_phone
  • $_woo_customer_shipping_first_name
  • $_woo_customer_shipping_last_name
  • $_woo_customer_shipping_company
  • $_woo_customer_shipping_address_1
  • $_woo_customer_shipping_address_2
  • $_woo_customer_shipping_city
  • $_woo_customer_shipping_state
  • $_woo_customer_shipping_postcode
  • $_woo_customer_shipping_country

WooCommerce specific (woo_order_updated and woo_order_created events)

  • $_woo_order_id
  • $_woo_order_number
  • $_woo_order_status
  • $_woo_order_currency
  • $_woo_order_total
  • $_woo_order_total_tax
  • $_woo_order_note
  • $_woo_order_payment_method
  • $_woo_order_payment_method_title
  • $_woo_order_billing_first_name
  • $_woo_order_billing_last_name
  • $_woo_order_billing_company
  • $_woo_order_billing_address_1
  • $_woo_order_billing_address_2
  • $_woo_order_billing_city
  • $_woo_order_billing_state
  • $_woo_order_billing_postcode
  • $_woo_order_billing_country
  • $_woo_order_billing_email
  • $_woo_order_billing_phone
  • $_woo_order_shipping_first_name
  • $_woo_order_shipping_last_name
  • $_woo_order_shipping_company
  • $_woo_order_shipping_address_1
  • $_woo_order_shipping_address_2
  • $_woo_order_shipping_city
  • $_woo_order_shipping_state
  • $_woo_order_shipping_postcode
  • $_woo_order_shipping_country

NLP specific

  • $_nlp_contexts¬†– list of contexts from NLP intent
  • $_nlp_entity_ + ¬†– entity value from NLP intent
  • $_nlp_speech¬†– default intent reply from NLP engine

Events

  • start¬†– system event triggered when user starts communicating to the bot
  • default¬†– system event triggered when user sends any message to the bot and there is no LISTEN block currently active
  • import¬†– system event triggered on importing new user into Twilio SMS user list