--- title: "Coding for chat to appear after hours" slug: "coding-for-chat-to-appear-after-hours" updated: 2026-10-15T01:25:32Z published: 2026-10-15T01:25:32Z canonical: "help.servicetitan.com/coding-for-chat-to-appear-after-hours" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.servicetitan.com/llms.txt > Use this file to discover all available pages before exploring further. # Coding for chat to appear after hours ## Overview You can add a script to the website to control when different chats appear after normally scheduled on-call hours. ## --- ### #### Who uses this feature - Administrators, Office Employees - Applies to all business types ## Example coding to configure dates and times The following is an example of coding for ST Chat to Text and Scheduling Pro. The days/times are configured for when the Scheduling Pro chat will appear: ## Example: Day 1 - Monday In this example Day 1 - Monday, SP Chat will appear before 07:00 and after 18:00. The week starts with Day 0 - Sunday. This is the example coding for Service Titan Chat to Text and Schedule Engine. The days/times are configured for when the SP chat will appear. In this example for Day 1 - Monday, SP Chat will appear before 07:00 and after 18:00. In the bottom section that controls the ST Chat widget, [insert the SP Chat to text Code](/construction/docs/chat-to-text-integration-1)**.** The SP chat will appear for the times listed and all other times the ST chat will appear.