---
title: "Automations & Cron Job - Devad CHAT Guides — Devad"
url: "https://devad.io/help/en/docs/settings-area/automations-cron-job--209"
---

[Skip to content](https://devad.io/help/en/docs/settings-area/automations-cron-job--209#main-content)  

[Devad](https://devad.io)  

[Home](https://devad.io) [POST](https://devad.io/post) [CHAT](https://devad.io/chat) [SITE](https://devad.io/site) [AI](https://devad.io/ai-agent) [Pricing](https://devad.io/pricing)

 

[](https://devad.io/help#hc-search)  [Agent view](https://devad.io/help/en/docs/settings-area/automations-cron-job--209.md)

 

[Docs](https://devad.io/help?type=doc&lang=en&view=list) [Guides](https://devad.io/help?type=guide&lang=en&view=list) [Blog](https://devad.io/help?type=article&lang=en&view=list) [Changelog](https://devad.io/help?type=changelog&lang=en&view=list)

 

Browse this Help Center

[Settings Area](https://devad.io/help?category=5&lang=en)  

- [Conversation Management System](https://devad.io/help/en/docs/settings-area/conversation-management-system--163)
 
- [Conversation Management System](https://devad.io/help/en/guides/settings-area/conversation-management-system--164)
 
- [Articles & Tickets Sections](https://devad.io/help/en/docs/settings-area/articles-tickets-sections--45)
 
- [Automations & Cron Job](https://devad.io/help/en/docs/settings-area/automations-cron-job--48)
 
- [Department Settings & Configuration](https://devad.io/help/en/guides/settings-area/department-settings-configuration--168)
 
- [Department Settings & Configuration](https://devad.io/help/en/docs/settings-area/department-settings-configuration--167)
 
- [Notifications Management](https://devad.io/help/en/guides/settings-area/notifications-management--171)
 
- [Notifications Management](https://devad.io/help/en/docs/settings-area/notifications-management--170)
 
- [Conversation Management System](https://devad.io/help/en/docs/settings-area/conversation-management-system--57)
 
- [Department Settings & Configuration](https://devad.io/help/en/docs/settings-area/department-settings-configuration--63)
 
- [Departments, Queue and routing](https://devad.io/help/en/docs/settings-area/departments-queue-and-routing--66)
 
- [Email, Newsletter, SMS, & Notifications](https://devad.io/help/en/docs/settings-area/email-notifications-sms--69)
 
- [Miscellaneous: More Features & settings](https://devad.io/help/en/guides/settings-area/more-features-settings--185)
 
- [Miscellaneous: More Features & settings](https://devad.io/help/en/docs/settings-area/more-features-settings--184)
 
- [Language and Translations](https://devad.io/help/en/docs/settings-area/language-and-translations--201)
 
- [Language and Translations](https://devad.io/help/en/guides/settings-area/language-and-translations--202)
 
- [Articles & Tickets Sections](https://devad.io/help/en/guides/settings-area/articles-tickets-sections--204)
 
- [Articles & Tickets Sections](https://devad.io/help/en/docs/settings-area/articles-tickets-sections--203)
 
- [Departments, Queue and routing](https://devad.io/help/en/docs/settings-area/departments-queue-and-routing--205)
 
- [Departments, Queue and routing](https://devad.io/help/en/guides/settings-area/departments-queue-and-routing--206)
 
- [Language and Translations](https://devad.io/help/en/docs/settings-area/language-and-translations--102)
 
- [Automations & Cron Job](https://devad.io/help/en/docs/settings-area/automations-cron-job--209)
 
- [Automations & Cron Job](https://devad.io/help/en/guides/settings-area/automations-cron-job--210)
 
- [Mobile App & Other Settings](https://devad.io/help/en/docs/settings-area/mobile-app-other-settings--108)
 
- [Miscellaneous: More Features & settings](https://devad.io/help/en/docs/settings-area/more-features-settings--111)
 
- [Mobile App & Other Settings](https://devad.io/help/en/guides/settings-area/mobile-app-other-settings--213)
 
- [Mobile App & Other Settings](https://devad.io/help/en/docs/settings-area/mobile-app-other-settings--212)
 
- [Notifications Management](https://devad.io/help/en/docs/settings-area/notifications-management--117)

 

[Help Center](https://devad.io/help)  › [Docs](https://devad.io/help?type=doc&lang=en)  › [Settings Area](https://devad.io/help?category=5&lang=en)  › Automations & Cron Job

Docs

# Automations & Cron Job

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

 

Abdullah HA

 

## Cron job

 

- CHAT.devad.io tries to process emails via cron jobs every 60 seconds, details [here](https://devad.io/help/en/docs/settings-area/automations-cron-job--209#cron-jobs) .
 
- If you’re using the [cloud version](https://devad.io/help/en/docs/settings-area/automations-cron-job--209#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](https://devad.io/help/en/docs/settings-area/automations-cron-job--209#cloud-info) .
 
- 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](https://devad.io/help/en/docs/settings-area/automations-cron-job--209#cloud-info) .

 

- 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](https://chat.devad.io/docs/api/web#cron-jobs) , or [PHP API](https://chat.devad.io/docs/api/php#cron_jobs) .

 

 

## Automations

 

Automations allow running [multilingual](https://devad.io/help/en/docs/settings-area/automations-cron-job--209#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.

 

Use this page

 [Ask ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdevad.io%2Fhelp%2Fen%2Fdocs%2Fsettings-area%2Fautomations-cron-job--209%20and%20answer%20questions%20about%20the%20content.) [Ask Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdevad.io%2Fhelp%2Fen%2Fdocs%2Fsettings-area%2Fautomations-cron-job--209%20and%20answer%20questions%20about%20the%20content.)

 

On this page

[Cron job](https://devad.io/help/en/docs/settings-area/automations-cron-job--209#gspb-heading-id-gsbp-2e3a882) [Run the AI training via cron job](https://devad.io/help/en/docs/settings-area/automations-cron-job--209#gspb-heading-id-gsbp-679ec2c) [More about Cron Jobs](https://devad.io/help/en/docs/settings-area/automations-cron-job--209#gspb-heading-id-gsbp-027380e) [Automations](https://devad.io/help/en/docs/settings-area/automations-cron-job--209#gspb-heading-id-gsbp-0470892)

 

## Keep exploring

[### Conversation Management System

Here is the full, SEO-optimized, and expanded article based on your documentation. I have utilized the specific GreenShift and WordPress blocks you provided to ensure…](https://devad.io/help/en/guides/settings-area/conversation-management-system--164) [### Conversation Management System

Here is the full, SEO-optimized, and expanded article based on your documentation. I have utilized the specific GreenShift and WordPress blocks you provided to ensure…](https://devad.io/help/en/docs/settings-area/conversation-management-system--163) [### Articles & Tickets Sections

Knowledge Base &amp; Ticket Management Expand your customer support capabilities beyond real-time chat. This guide covers two essential modules:&nbsp;Articles&nbsp;and&nbsp;Tickets. Learn how to build a searchable Knowl...](https://devad.io/help/en/docs/settings-area/articles-tickets-sections--45) [### Department Settings & Configuration

Department Settings & Configuration Organizing your support team into departments ensures that user inquiries are handled by the right experts. You can configure department behavior…](https://devad.io/help/en/guides/settings-area/department-settings-configuration--168)

 

[Devad](https://devad.io) 

Apps Suite Every Business Needs to Start and Grow

## Apps

 [POST](https://devad.io/post) [CHAT](https://devad.io/chat) [SITE](https://devad.io/site) [AI](https://devad.io/ai-agent)

## Company

 [Plans & pricing](https://devad.io/pricing) [Contact](https://devad.io/contact-us)

## Resources

 [Help Center](https://devad.io/help)

## Legal

 [Privacy](https://devad.io/privacy-policy) [Terms](https://devad.io/terms-of-service) [Cookies](https://devad.io/cookie-policy)
