Logo for AiToolGo

How to Use AI to Generate Weekly Reports and Other Rich Text Content: A Practical Guide

Overview(以操作指引为主,概念介绍较浅,未深入讨论提示词设计原则与底层机制)
Easy to understand
 0
 0
 5
本文介绍纷享销客平台的“AI生成协同富文本”功能,即通过配置提示词模板,让AI根据对象字段、场景变量、自定义函数及Prompt指令自动生成周报、日报、月报等富文本内容。文章涵盖功能类型(主对象字段、其他对象字段、场景变量、APL自定义函数)、适用场景、模板配置的基础设置、提示内容、测试预览等完整流程,并以“自动汇总销售记录生成本期工作总结”为实操案例,演示从新建模板、绑定字段到前台生成并插入内容的全过程。
  • main points
  • unique insights
  • practical applications
  • key topics
  • key insights
  • learning outcomes
  • • main points

    • 1
      流程完整:从模板创建、字段绑定、测试预览到前台使用,形成闭环的操作路径
    • 2
      案例具体:以日志对象下“本期工作总结”字段为例,步骤清晰,便于直接复现
    • 3
      变量体系说明清楚:区分主对象字段、其他对象字段、场景变量与自定义函数四类提示来源
  • • unique insights

    • 1
      将AI生成能力与企业CRM的业务对象(日志、销售记录)深度绑定,实现基于真实业务数据的自动汇总,而非通用文本生成
    • 2
      通过“提示模板+字段绑定+前台一键生成”的分层设计,把提示词工程封装给管理员,终端员工只需点击生成与插入
  • • practical applications

    • 对销售及管理人员而言,可将分散在CRM中的销售记录自动汇总为周报、日报、月报草稿,显著减少手工撰写时间,并保证内容与真实业务数据一致;管理员还可通过复用模板统一团队汇报格式。
  • • key topics

    • 1
      AI生成协同富文本的功能定义与变量类型
    • 2
      提示模板的配置流程(基础设置、提示内容、测试预览)
    • 3
      以销售记录自动生成工作总结为例的端到端实操
  • • key insights

    • 1
      在CRM业务数据上直接生成周报/日报等富文本,数据来源真实可追溯
    • 2
      提供可视化的变量引用与预览测试机制,降低提示词工程门槛
    • 3
      支持自定义APL函数处理复杂业务逻辑,扩展生成能力边界
  • • learning outcomes

    • 1
      理解AI生成协同富文本的功能定位及四类变量来源
    • 2
      能够独立完成提示模板的创建、字段绑定与测试预览
    • 3
      掌握基于销售记录自动生成工作总结等富文本的端到端操作流程
examples
tutorials
code samples
visuals
fundamentals
advanced content
practical tips
best practices

“ What Is AI-Generated Collaborative Rich Text?

Imagine having an intelligent assistant that can quickly produce document content tailored to a specific topic or format. This is the core idea behind AI-generated collaborative rich text in Fenxiang (纷享销客). By configuring a prompt template, users can guide the AI assistant to produce high-quality rich text. Users insert variables as prompt inputs and craft precise prompts to control the output. Rather than being a simple add-on, the feature works like a smart writing partner that helps teams turn business data into readable, structured documents with less manual effort.

“ Core Features and Variable Types

The feature supports several types of variables that give users powerful generation capabilities. Primary object and its fields: reference field data from the current object. Other objects and their fields: reference field data from related objects. Scenario-related variables: automatically populate dynamic variables tied to the current context. Custom functions: write APL functions in Java or Groovy syntax to handle complex logic. Together, these variable types allow the AI to draw on both the record being edited and the broader business data around it, so the generated text reflects real, context-specific information.

“ Typical Use Cases

The feature is currently applicable to a range of scenarios. The most prominent example is automatically generating sales activity summaries, which helps employees complete daily, weekly, and monthly reports with minimal effort. Because the template can pull in related records and business fields, the same approach can be adapted to other report-writing and content-drafting tasks where repetitive, data-driven text needs to be produced consistently.

“ Quick Start: Configuring a Prompt Template

Configuring a prompt template follows an overall workflow of three stages: basic settings, prompt content, and testing with preview. Each stage builds on the previous one, so completing them in order ensures the final output matches your requirements. The sections below walk through each stage in detail.

“ Step 1: Basic Settings

Start by selecting the generation language (for example, Simplified Chinese), the stylistic preference, the sender role, and the content length. Then choose an AI model that fits the task. Clear basic settings establish the tone and scope of the output, while the model choice affects quality and speed, so it is worth matching the model to the complexity of the report.

“ Step 2: Configuring Prompt Content

The prompt content is assembled from several sources. Object fields: select data fields from the object as inputs. Scenario variables: use special variables specific to the current user scenario; for example, when writing a marketing email, the email subject is a scenario variable. Custom functions: APL functions based on Java or Groovy, which require selecting a namespace and business object and then binding the function to the business scenario. Prompt: write explicit instructions so the AI understands your intent. Combining these sources lets you build a template that pulls in the right data and tells the AI exactly how to structure the result.

“ Step 3: Testing and Previewing

Validate the configuration with test data before rolling it out. In the preview test area, click the generate button, review the output, and adjust the template until the result meets your expectations. Iterating on the prompt at this stage is far cheaper than discovering problems after users begin relying on the template.

“ Practical Example: Auto-Generating a Work Summary from Sales Records

Consider a scenario where the AI retrieves the current user's sales records within the log's time period and automatically generates a summary of this period's work. First, enable the AI generation feature on the collaborative rich text field named 'Work Summary for This Period' in the log object. Next, under 'Select a prompt template,' choose 'Create new template,' give it a name and description, and click Next. Then select your preferred model, set the generation language to Simplified Chinese, and leave style and length unrestricted. In the prompt content section, configure the weekly report template in detail, making sure it covers all the necessary information. Finally, click 'Generate Preview' in the upper right corner and select test data. Clicking 'Generate Preview' again shows both the prompt preview and the generated text, completing the example of automatically summarizing sales records into a work summary.

“ Binding the Template and Generating Content in the Frontend

After saving the prompt template, return to the field editing page and bind the newly created template to the field, then save. Next, go to the frontend, open the log object, and click the New button. An AI icon will appear under the 'Work Summary for This Period' field. Click the icon and select the bound prompt template, which displays a preview of the prompt for the current data. Click the Generate button, and the AI produces rich text based on the template and the log's time range. If the result meets your needs, click 'Insert Below' to automatically populate the 'Work Summary for This Period' field. If it does not, use the regenerate button in the lower left corner to try again.

“ Summary and Outlook

The AI-generated collaborative rich text feature gives organizations an intelligent and efficient way to produce field content. By configuring prompt templates, users can readily guide the AI assistant to generate high-quality rich text tailored to their actual needs. As you continue to explore the feature, you will find more ways to apply it, bringing added convenience and value to everyday work.

 Original link: https://help.fxiaoke.com/ee88/f002/0e13

Comment(0)

user's avatar

      Related Tools