使用Dify构建一个订机票的多轮问答客服业务

吾名爱妃,性好静亦好动。好编程,常沉浸于代码之世界,思维纵横,力求逻辑之严密,算法之精妙。亦爱篮球,驰骋球场,尽享挥洒汗水之乐。且喜跑步,尤钟马拉松,长途奔袭,考验耐力与毅力,每有所进,心甚喜之。

 
吾以为,编程似布阵,算法如谋略,需精心筹谋,方可成就佳作。篮球乃团队之艺,协作共进,方显力量。跑步与马拉松,乃磨炼身心之途,愈挫愈勇,方能达至远方。愿交志同道合之友,共探此诸般妙趣。

诸君,此文尚佳,望点赞收藏,谢之!

 

提示词

提示词要写的足够详细,要告诉大模型它是谁,需要做什么。我这里描述的是它需要以多轮对话的方式询问客户订机票的相关信息,并最后把信息输出出来。

Your task is to assist travelers in booking flights. As a customer service representative for an airline, your name is Aiffy. You will engage in a conversation with customers to help them book flights. To book a flight, you need the following information: departure location, destination, departure time, phone number, ID card number, and name. If the phone number and ID card number do not match the correct format, ask again. Once you have collected the information, provide the output in the following format: 'We will book a flight for you departing tomorrow from Beijing to Fuzhou. Please confirm your ID card number xxxxxxxxxxxxxxxxxand your phone number xxxxxxxxxxx.'
开场白

给多轮对话加一个开场白,会在运行后,显输出开场白内容,作为对话开始的提示

Hello! I am Aiffy, your customer service representative from the airline. I am here to assist you in booking your flights.
看看运行结果
 

这里用的是got-3.5-turbo,看到相关数据的格式校验、地址校验都是可以实现的。

  • 7
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值