This is an old revision of the document!
====== Message Template ====== The template reduces the input work when sending messages or emails. Set the contents that are used frequently or batch sent as templates, and that will high increase the working eficiency. Some templates are preset by the system as the service notification. You can modify their contents and layout. Click **Message -> Templates** to enter the template page. {{:en:module_manual:message:信息模版管理_页面.jpg?768|}} ===== Field References ===== {{:en:module_manual:message:信息模版管理_添加.jpg?768|}} **Name :**Enter a name for this template, better reflecting this purpose. **Type :**For SMS, email, or fax. Only SMS can be sent with the SMS template, and the same for emails and faxes. **Target:**Normal template or application template If you are just to send some ads, notices, choose normal. Application template includes tasks, bills, voicemails, working as the notice function of the corresponding modules in the system. When you need to redifine these templates, you can refer to the default templates of the system: add a new template, and change the status of the default template to **Disable**, and enable your new template. Next time the system would use your new template to send messages. **Language:** The language in the template ( a same email can be set in different languages), thus agents can send them to customers with different language preference. Optional languages are from **System -> Language** **Use Wildcard:** let the system know whether your email uses wildcards. The system will replace the variables for you. For example, the SMS is: Dear ##param0##, your balance is $##param1##, the left net flow is ##param2##M. We call parameters like ##param0## system variables (they are assigned by the system, we will explain later). **Subject:**Email template needs this for the email subject. **MIME:**for email template. Please choose "yes" ( the templates are html), to identity the email contains more than words. **Status:**Only available template can be chosen. Only one application template ( task, bill, voicemail) of one language can be chosen by a team. Because applicaiton templates are for system, and if there are multiple available templates, the system will not be sure which template the messages are sent from. **Team name:**If enter a team name here, then this template can only be used within this team. Leave it blank and all teams can use it. **Object type, object name:**mark the application range, applying to which application under which module. If you set a special module for an application, when agents click send (email or sms) button on campaign popup or customer Service popup, the system will choose templates for you automatically. {{:en:module_manual:message:信息模版管理_选中业务模板.jpg|}} **Agent choose:** templates which allow agents to see and choose from. **Modify:**Whether allow senders to modify the contents when using this template. In the sms or email sending page, agent chooses a template, and the system will add the subject and contents into the page. If this template do not allow modify, then it shall be sent exactly the same as it has been set. If modify is allowed, agent can change some variables and then send. **Note:**like remarks, for remind you of the purpose or etc of this template. And you can leave it blank. **Attach a file:**You have to upload a file when this template is for fax, and it has to be pdf, doc or docx. And the template for email can be anything according to your needs. **Content:** the content of emails or sms. The content of SMS may contain text content, including Chinese characters, English characters, symbols. This does not support images or music. Each sms contains 140 characters. Contents exceed the limit will be splited into more than one sms. The contents of emails do not have limit. Paste contents which has been cut or copied for txt notebook, because the system cannot analyse some symbols from Word, thus would cause a loss of the contents. Plus, you can copy the contents from Word and paste in Gmail, and google will change them into html. ===== Variables ===== When you send sms or emails, you need to change some information in a template first. Then you need to use variables in the email. Like when the ticket has been booked successfully, an sms with the ticket number will be sent to the customer. The content of the sms can be like this: You have booked ##param1## ticket(s) of Cinema ##param0##. The order number is ##param2##. Please use before June, 30, 2013. When you are sending mass sms, the system will correspond the data row with the parameters according to the customer information and sms template. The information will replace the parameters automatically. {{:en:module_manual:message:信息模版管理_匹配变量.jpg?768|}} 系统提供的变量有哪些?变量的含义是什么? 1. 群发信息中提供十个变量,即##param0##,##param1##.....##param9##,用于发送者自定义客户数据中哪列对应哪个变量。 以下变量,系统自动使用相应数据去替换。邮件内容中存在哪些变量,系统就会替换哪些变量。 2. Task template(任务提示邮件模版) {{:en:module_manual:message:信息模版管理_任务模板.jpg?768|}} **##taskid##**:任务的ID序号; **##title##**:任务的标题; **##sender##**:任务的发布者; **##sendertype##**:任务发布者的类型; **##receiver##**:任务承接人; **##receivertype##**:任务承接者类型; **##status##**:任务状态; **##scheduler##**:任务预计开始时间; **##priority##**:任务级别; **##ticketcategoryname##**:任务类别的名称; **##email##**:任务发布者; **##option##**:任务内容或修改明细; 3. voicemail(语音邮件模板,当有语音留言时,系统会用此邮件通知分机所属者) {{:en:module_manual:message:信息模版管理_语音邮件模板.jpg?768|}} **##teamname##**:团队名称 **##devicename##**:分机名称 **##origdate##**:留言时间 **##callerid##**:留言者电话号码 4. admin bill(系统管理员账单)、team bill(团队管理员账单)、user bill(用户账单),每月定时发送的话费账单。 {{:en:module_manual:message:信息模版管理_账单模板.jpg?768|}} **##param_logo##**:账单的logo显示,默认使用astercc官方logo。如需替换请更改此图片/var/www/html/asterCC/data/billpage/astercc_logo.png **##param_zipcode##**:目标帐号的邮政编码。 **##param_country##**:目标帐号的国家。 **##param_city##**:目标帐号的城市。 **##param_address##**:目标帐号的联系地址。 **##param_username##**:目标帐号。 **##param_statementstart##**:账单的计费起始日期。 **##param_statementend##**:账单的计费终止日期。 其余变量含义可直接参考模板中的中文名称。