Ë
    æ¯{i¹  ã                   ó0   — d dl mZ d dlmZ  G d„ d«      Zy)é    )ÚBotInstructionTemplate)ÚBotInstructionTemplateTypec                   ó@   — e Zd Zddddddddd	d
ddddddœZed„ «       Zy)ÚBotInstructionzGeneral Bot Messagesz\If the user wants to reach, speak or talk to {advisor_name} then transfer to {advisor_phone}zzIf the user wants to schedule a meeting then transfer the call to BDC {bdc_number} and say 'I'll transfer you to our BDC';z«If the user asks for an advisor who is not in the list, say 'I'm sorry, we don't have an advisor by that name at our company. Would you like to connect with someone else?'zWorking HourszbCannot transfer calls in {off_hours_or_holidays}. Please record a message for the advisor instead.ÚHolidayznIf the user wants to talk, speak, transfer or reach to {dealership_name} then transfer to {dealership_phone}; z8Our company provides the following services: {services}.zÏThe base price for the {service_name} service starts at {base_price}. Only if the customer asks about the labor rate for {service_name}, tell them: The labor rate for {service_name} is {labor_rate} per hour.z/{service_name} Service starting at {base_price}zJ{service_name} Service is available. Pricing will be provided upon requestzÒWhen the user asks about a specific service, explain clearly what the service includes, its purpose, and any important information in simple words. Use the provided service description and pricing if available.z¹When the user asks about service pricing, provide the starting price first. If labor rate exists, explain that labor is charged per hour. Always be polite and transparent about pricing.zOCurrently, the company has no service to provide on call. You need to visit us.)ÚgeneralÚadvisor_transferÚbdc_transferÚadvisor_not_foundÚworking_hoursÚ	off_hoursÚholidayÚdealership_transferÚservice_listÚservice_lineÚservice_line_no_laborÚservice_no_priceÚservice_detailÚservice_priceÚservice_not_foundc                 ó"  — t         j                  j                  | ||d¬«      j                  «       }|r|S t	        |«      j
                  }t        j                  j                  |«      }t         j                  j                  | ||||d¬«      }|S )NT)ÚcompanyÚbot_nameÚtemplate_typeÚ	is_active)r   r   r   ÚtitleÚcontentr   )
r   ÚobjectsÚfilterÚfirstr   Úlabelr   Úbase_contentÚgetÚcreate)r   r   r   Útemplater   r   s         ú_/var/www/html/dp2/backend_v2.1/server/apps/companies/repositories/bot_instruction_repository.pyÚget_or_create_templatez%BotInstruction.get_or_create_template$   s™   € ä)×1Ñ1×8Ñ8ØØØ'Øð	 9ó 
÷
 ‰%‹'ð 	ñ ØˆOä*¨=Ó9×?Ñ?ˆÜ ×-Ñ-×1Ñ1°-Ó@ˆä)×1Ñ1×8Ñ8ØØØ'ØØØð 9ó 
ˆð ˆó    N)Ú__name__Ú
__module__Ú__qualname__r"   Ústaticmethodr'   © r(   r&   r   r      sc   „ ð *Øzð Uð KØ(ØyØð  Pð Sð jØ!RØhðMð>ð oñ5€Lð: ñó ñr(   r   N)Úapps.calls.modelsr   Úapps.companies.constantsr   r   r-   r(   r&   Ú<module>r0      s   ðÝ 4Ý ?÷7ò 7r(   