Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5dddd0a4
authored
Apr 17, 2023
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化话术
1 parent
6f6e77c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
src/views/clientManage/index.vue
src/views/clientManage/index.vue
View file @
5dddd0a
...
@@ -669,6 +669,8 @@ export default {
...
@@ -669,6 +669,8 @@ export default {
//提取出联系电话(手机号),命名为customerPhone,不用补全;
//提取出联系电话(手机号),命名为customerPhone,不用补全;
// 提取出开始时间,命名为beginDate,格式为:yyyy-MM-dd,例如:2022-11-12,只有以上文字包含"购车"或者"时间"才提取,不然取值'';
// 提取出开始时间,命名为beginDate,格式为:yyyy-MM-dd,例如:2022-11-12,只有以上文字包含"购车"或者"时间"才提取,不然取值'';
//提取出结束时间,命名为endDate,格式为:yyyy-MM-dd,例如:2022-11-12,只有以上文字包含"购车"或者"时间"才提取,不然取值'';
//提取出结束时间,命名为endDate,格式为:yyyy-MM-dd,例如:2022-11-12,只有以上文字包含"购车"或者"时间"才提取,不然取值'';
//具体城市则取值省简称加字母,比如
//或者车牌号
if
(
this
.
orderform
.
order
==
''
)
{
if
(
this
.
orderform
.
order
==
''
)
{
this
.
orderform
.
order
=
this
.
placeholder
this
.
orderform
.
order
=
this
.
placeholder
}
}
...
@@ -679,7 +681,7 @@ export default {
...
@@ -679,7 +681,7 @@ export default {
提取出营销文案关键字,命名为subject;
提取出营销文案关键字,命名为subject;
如果有提到购车时间,则提取出购车时间范围,命名为beginDate和endDate,格式为:yyyy-MM-dd,例如:2022-11-12;
如果有提到购车时间,则提取出购车时间范围,命名为beginDate和endDate,格式为:yyyy-MM-dd,例如:2022-11-12;
提取出节日,命名为festival,如果是数字,转化成大写,例如:五一节;
提取出节日,命名为festival,如果是数字,转化成大写,例如:五一节;
提取出车主归属地
或者车牌号,命名为carNumber,如广东的车主,则取值为"粤";
提取出车主归属地
,命名为carNumber,如广东的车主,则取值为"粤",广州的车主取值"粤A";
提取出性别,命名为customerSex,取值范围:"0,1,2",0表示全部,1表示男,2表示女;
提取出性别,命名为customerSex,取值范围:"0,1,2",0表示全部,1表示男,2表示女;
所有提取的字段未精确匹配到的不提取和输出。
所有提取的字段未精确匹配到的不提取和输出。
今天是
${
dayjs
(
new
Date
()).
format
(
'YYYY年MM月DD日'
)}
。
今天是
${
dayjs
(
new
Date
()).
format
(
'YYYY年MM月DD日'
)}
。
...
@@ -745,7 +747,7 @@ export default {
...
@@ -745,7 +747,7 @@ export default {
// cutomerInfo.push(`客户${index + 1},姓名:${customerName},性别:${{ 1: '男', 2: '女' }[customerSex] || '先生/女士'},电话:${customerPhone},购车日期:${buyDate},车牌号:${carNumber}`)
// cutomerInfo.push(`客户${index + 1},姓名:${customerName},性别:${{ 1: '男', 2: '女' }[customerSex] || '先生/女士'},电话:${customerPhone},购车日期:${buyDate},车牌号:${carNumber}`)
// }
// }
// content += `${cutomerInfo.join(';')};请根据客户的特征,分别为每个客户生成一条50字左右关于${this.keys.subject || ''}的营销文案。字段命名为content;整条结果以数组输出,命名为customers。输出json格式.`
// content += `${cutomerInfo.join(';')};请根据客户的特征,分别为每个客户生成一条50字左右关于${this.keys.subject || ''}的营销文案。字段命名为content;整条结果以数组输出,命名为customers。输出json格式.`
let
content
=
`今天是
${
dayjs
(
new
Date
()).
format
(
'YYYY年MM月DD日'
)}
。请帮我生成一条50字左右关于
${
this
.
keys
.
subject
||
''
}
的
营销文案。字段命名为content;输出json格式.:`
let
content
=
`今天是
${
dayjs
(
new
Date
()).
format
(
'YYYY年MM月DD日'
)}
。请帮我生成一条50字左右关于
${
this
.
keys
.
festival
||
this
.
keys
.
subject
||
''
}
为主题
营销文案。字段命名为content;输出json格式.:`
// this.$apis.crowdManage.gpt(content).then(result => {
// this.$apis.crowdManage.gpt(content).then(result => {
// const { code, success, message, data } = result
// const { code, success, message, data } = result
// if (code == '000000' && success) {
// if (code == '000000' && success) {
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment