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:**用于邮件模板,请选择“是”(系统中模板创建后均为html结构),标识邮件不是纯文字内容。 **模板状态:**只有可用的模板,才能被发送者选择。另外业务类模板(任务,账单,语音邮件提示)每个团队中每个语种只能有一个可用模板,因为业务类模板是给系统程序使用的,如果有多个可用模板,系统便无法确定你到底要用哪个模板发送通知信息。 **团队名:**如果填写团队,代表此模板只能用于这个团队。否则可以被任何团队使用。 **对象类型,对象名:**标识模板的使用范围,此模板能够用于哪个模块下的哪个业务。 如果你为某个业务设置了专用模板,坐席在外拨营销弹屏页面或呼入客服弹屏页面点击发送邮件或短信按钮时,系统可以自动帮你选中此类模板。 {{:en:module_manual:message:信息模版管理_选中业务模板.jpg|}} **坐席选择:**允许坐席选择的模板,才能被坐席看到并使用。 **修改:**使用此模板时,是否允许发送者修改发送内容。 在短信或邮件发送界面,坐席选择一个模板,系统自动将标题和内容添加到页面中。如果此模板不允许修改,那么模板内容是什么,坐席就要发什么。如果允许修改,坐席可以对模板赋值的内容稍微修改后再发送。 **模版注释:**可理解为备注,描述此模板的具体用途或备忘。不用填写。 **文件ID:**传真类模板必须上传附件,即传真的文件内容(仅支持pdf,doc,docx格式的文件)。 邮件模板根据需要上传附件,文件格式任意。 **内容:**短信或邮件的内容。 短信的内容仅支持文本内容,即汉字,英文字母,符号。不支持图片,音乐发送。每条短息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##**:账单的计费终止日期。 其余变量含义可直接参考模板中的中文名称。