Table of Contents

Cron job

  • CHAT.devad.io tries to process emails via cron jobs every 60 seconds, details here.
  • If you’re using the cloud version the cron job is already activated by default and it will run at least once every 60 minutes.
  • You can manually trigger execution and speed up cron jobs via API with the PHP function sb_email_piping(), or the WEB API function email-piping.
  • You can create a cron job that runs the URL https://chat.devad.io/script/include/api.php?piping=true&cloud=API-TOKEN and replace API-TOKEN with your API token.
  • If you manually run the cron job, activate the Disable cron job option to stop CHAT.devad.io from manually triggering it and to improve performance.

Run the AI training via cron job

just enable the Settings > Artificial Intelligence > OpenAI > Training via cron job option and the cron job will be activated. You can disregard the instructions below.

To automatically train the chatbot with your website content at regular intervals, create a cron job that runs the URL https://chat.devad.io/include/api.php?open-ai-training=true, or use the command */59 * * * * wget https://chat.devad.io/include/api.php?open-ai-training=true to run it via a command. Replace https://chat.devad.io with your Installation URL, get it from Settings > Miscellaneous > Installation URL. use this URL: https://chat.devad.io/script/include/api.php?open-ai-training=true&cloud=API-TOKEN and replace API-TOKEN with your API token.

  • the cron job can be executed at most once every 7 days.
  • We strongly recommand providing an XML sitemap instead of the website URL for performance reasons.
  • Automatic training is limited to websites; files, Q&A, and articles are excluded. Re-training will delete the previous website training data.

More about Cron Jobs

  • Cron jobs are executed by the first user that visit the website at any given hour of the day.
  • Cron jobs are executed every 60 minutes (60 seconds for email piping), but it can take longer, or it can take less time as well, in relation to the traffic of your website.
  • Because cron jobs are initiated by users, if you have less than 1 visitor per hour (per minute for email piping), it could take longer. As long as there is at least one active user on the site, execution every 60 minutes (60 seconds for email piping) is guaranteed.
  • You can speed up the cron jobs execution by manually run them via WEB API, or PHP API.

Automations

Automations allow running multilingual automatic tasks when conditions set by you are met.

  • To delete a condition, set it to empty. To disable an automation, delete all conditions.
  • Automations are sent only 1 time to users.
  • If you used an automation in the past, and users already received it, you need to delete the automation and create a new one to show it to the users.
  • Repeat only works if used in conjunction with date time.
  • When date time is used in conjunction with the criteria is exactly, the value must not contain hours and minutes (hh:mm). Ex. 25/10/2021 (25/10/2021 10:30 will not work).
  • The Settings > Users > Register all visitors option must be active if there are message automations that are executed on page load.
  • City, countries, languages work automatically only if both the settings Settings > Users > Register all visitors and Settings > Users > Full visitor details are enabled.
  • Cities work only if the user detail location is set and equal to city, country, or if the user detail city is set.
  • Countries work only if the user details country_code, or country is set, or if the user detail location is set and equal to city, country. The country name must be in english.
  • languages work only if the user details browser_language, or language is set.
  • A visitor is a Returning visitor only if it visits the website again after 24h or more.
  • The pop-ups appear only if the chat is closed, and they overwrite the default pop-up. You can check the message fallback option to send a message instead of showing the pop-up if the chat is open.
  • You may need to enable Settings > Users > Register all visitors if you want to send an automated message to new users.
  • Chat messages and popup fallback messages are sent only if the last user or agent message of the conversation is older than 10 minutes. This feature prevents unwanted automated messages to be sent during an agent-user conversation.
  • The Custom variable condition check for the JavaScript variables with the given names and values. For example, the condition example=ABC is met if into the chat’s page there is this JavaScript code: var example = “ABC”;. Add multiple variables separated by commas.
  • Automations are not compatible with the messaging apps like WhatsApp, Messenger, Instagram, Telegram, Twitter, Zalo, WeChat, Viber, Line.

Categorized in:

CHAT App, Settings Area,

Tagged in: