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. 短信的内容仅支持文本内容,即汉字,英文字母,符号。不支持图片,音乐发送。每条短息70字,超过70字发送时会自动拆分成多条短信。 邮件内容填写无限制,从其它文档向此输入框粘贴内容前,请先把内容粘贴到记事本中保存,然后再从记事本中复制粘贴到输入框中。 因为系统不能解析word一类文档的特殊制符,会造成邮件内容缺失。你也可以把word中复制出的内容放到gmail邮箱中保存,借助google的强大技术转义这些制符为html结构。 ===== 变量介绍 ===== 使用模板发送短信或邮件时会遇到这样的问题,邮件整体内容一致,但是部分地方需要替换成客户固有的信息,那么你需要在邮件内容中使用变量。 例如订票成功后,发送一则短信告知客户订单号。短信内容需要这样设置 您成功预定##param0##影城电影票##param1##张。订单编号##param2##,请于2013年6月30日前使用。 在群发信息页面,我们根据客户数据和短息模板内容,将数据列和变量一一对应。短信发送时,系统将客户数据替换到短信内容里。(您成功预定XXX影城电影票2张。订单编号xxx00992212,请于2013年6月30日前使用。) {{: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##**:账单的计费终止日期。 其余变量含义可直接参考模板中的中文名称。