AppFlow无代码轻松搭建模型Agent

随着大语言模型发展至今,如何深度开发和使用模型也有了各种各样的答案,在这些答案当中,Agent无疑是一个热点回答。

通过模型也各种插件的组合,可以让你的模型应用具备各种能力,例如,通过天气查询插件+机票查询插件+地图插件,模型可以变成一个旅游规划助手;再例如,通过搜索插件+股市行情插件,模型可以成为您的投资助手。

曾经这一切都听起来是那么复杂和遥不可及。而现在,使用AppFlow,小白也能轻松搭建自己的AI Agent。

步骤一:创建钉钉应用

  1. 访问钉钉开放平台,联系您的组织管理员获取开发权限。然后点击创建应用。成为钉钉开发者的步骤可以参考文档成为钉钉开发者 - 钉钉开放平台

  1. 点击右侧“创建应用”按钮。填写您的“应用名称”和“应用描述”,上传应用图标并点击保存。

  1. 创建完成后点击左侧“凭证与基础信息”,查看您的Client IDClient Secret。后续在AppFlow中配置使用。

  1. 点击左侧“权限管理”,在搜索框输入“Card”,勾选“互动卡片实例写权限”和“AI卡片流式更新权限”,点击批量申请。

步骤二:创建钉钉AI卡片实例

  1. 访问钉钉卡片平台,点击新建模版。
  2. 填写模版名称,卡片类型选择“消息卡片”,卡片模版场景选择“AI卡片”,关联应用选择您上一步创建的应用。点击创建。

  1. 进入卡片编辑页面,如果没有特殊需求,建议您使用默认设置,否则可能会导致AppFlow无法适配卡片的问题。直接点击“发布”并确认。

  1. 返回模版列表即可查看您的模版ID。

步骤三:配置AppFlow连接流

使用推荐模版创建

  1. 访问AppFlow控制台,选择“与通义千问进行流式会话”模版,点击“立即使用”。

  1. 对账户进行授权。点击权限凭证下拉框,点击“添加新凭证”。

步骤1填写您在钉钉开发平台获取的相应信息即可,在步骤3中直接下拉选择即可。

步骤2安装创建凭证页面帮助文档开通即可。

  1. 点击下一步填写钉钉卡片模版ID。

  1. 点击下一步填写连接流名称等信息并下一步。
  2. 复制并保存WebhookUrl。

  1. 此时点击左侧连接流,可以看到连接流列表和您刚刚配置创建的连接流。找到您的连接流点击详情,点击右上角“编辑版本”,并找到“通义千问节点”

  1. 编辑通义千问节点,在“插件”选项下方选择您想要添加的任意插件,一般情况直接点击添加并确定即可。

  1. 点击保存并发布您的连接流即可~

** 请注意一定要发布连接流喔 **

步骤四:创建钉钉机器人

  1. 访问钉钉开发平台找到您的钉钉应用,点击进入详情页面。点击侧边“机器人”,打开机器人配置。

  1. 填写相关必填信息。消息接收模式请选择“HTTP”模型,页面会出现“消息接收地址”输入框。在这里填写刚刚在AppFlow获取的WebhookURL地址。

  1. 点击调试按钮。可以钉钉扫码进群调试机器人。确认无误后点击发布。
  2. 回到应用开发页面,点击刚刚创建的应用名称进入应用详情页面。点击左侧菜单栏最下方的“版本管理与发布”,进入到版本发布与管理,点击右上角“创建新版本”按钮,输入版本相关信息,并选择合适的“应用可见范围”。

  1. 点击保存将进入权限审批环节,审批结束后应用将自动发布。如果您已经有权限了可以点击直接发布。

  1. 完成后即可去钉钉群中@机器人进行对话了~

  • 17
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是使用PlantUML代码画出的组件图: ``` @startuml !define AWSPUML https://raw.githubusercontent.com/awslabs/aws-icons-for-plantuml/v14.0.2/dist !includeurl AWSPUML/CustomerEngagement/amazon-pinpoint-communications.puml !includeurl AWSPUML/AppIntegration/amazon-appflow.puml !includeurl AWSPUML/ApplicationIntegration/amazon-sns.puml !includeurl AWSPUML/Compute/amazon-ec2.puml !includeurl AWSPUML/Compute/amazon-lightsail.puml !includeurl AWSPUML/Compute/amazon-ecs.puml !includeurl AWSPUML/Compute/amazon-elastic-container-registry.puml !includeurl AWSPUML/Compute/amazon-elastic-kubernetes-service.puml !includeurl AWSPUML/Compute/amazon-elastic-beanstalk.puml !includeurl AWSPUML/Database/amazon-rds.puml !includeurl AWSPUML/Database/amazon-dynamodb.puml !includeurl AWSPUML/Database/amazon-documentdb.puml !includeurl AWSPUML/Database/amazon-elasticache.puml !includeurl AWSPUML/Database/amazon-neptune.puml !includeurl AWSPUML/Database/amazon-qldb.puml !includeurl AWSPUML/Database/amazon-redshift.puml !includeurl AWSPUML/Database/amazon-timestream.puml !includeurl AWSPUML/DeveloperTools/amazon-codebuild.puml !includeurl AWSPUML/DeveloperTools/amazon-codecommit.puml !includeurl AWSPUML/DeveloperTools/amazon-codedeploy.puml !includeurl AWSPUML/DeveloperTools/amazon-codepipeline.puml !includeurl AWSPUML/DeveloperTools/amazon-xray.puml !includeurl AWSPUML/GameDevelopment/amazon-gamelift.puml !includeurl AWSPUML/InternetOfThings/amazon-freertos.puml !includeurl AWSPUML/InternetOfThings/amazon-iot.puml !includeurl AWSPUML/InternetOfThings/amazon-iot-analytics.puml !includeurl AWSPUML/InternetOfThings/amazon-iot-device-defender.puml !includeurl AWSPUML/InternetOfThings/amazon-iot-device-management.puml !includeurl AWSPUML/InternetOfThings/amazon-iot-events.puml !includeurl AWSPUML/InternetOfThings/amazon-iot-sitewise.puml !includeurl AWSPUML/InternetOfThings/amazon-iot-things-graph.puml !includeurl AWSPUML/InternetOfThings/amazon-iot-greengrass.puml !includeurl AWSPUML/MachineLearning/amazon-sagemaker.puml !includeurl AWSPUML/ManagementAndGovernance/amazon-cloudwatch.puml !includeurl AWSPUML/ManagementAndGovernance/amazon-cloudformation.puml !includeurl AWSPUML/ManagementAndGovernance/amazon-cloudtrail.puml !includeurl AWSPUML/ManagementAndGovernance/amazon-config.puml !includeurl AWSPUML/ManagementAndGovernance/amazon-control-tower.puml !includeurl AWSPUML/ManagementAndGovernance/amazon-service-catalog.puml !includeurl AWSPUML/MessagingAndTargeting/amazon-ses.puml !includeurl AWSPUML/MessagingAndTargeting/amazon-sms-and-voice.puml !includeurl AWSPUML/MessagingAndTargeting/amazon-pinpoint.puml !includeurl AWSPUML/MigrationAndTransfer/amazon-s3-transfer-acceleration.puml !includeurl AWSPUML/MigrationAndTransfer/amazon-snowball.puml !includeurl AWSPUML/MigrationAndTransfer/amazon-snowmobile.puml !includeurl AWSPUML/Mobile/amazon-mobile-analytics.puml !includeurl AWSPUML/Mobile/amazon-pinpoint-mobile.puml !includeurl AWSPUML/NetworkAndContentDelivery/amazon-cloudfront.puml !includeurl AWSPUML/NetworkAndContentDelivery/amazon-vpc.puml !includeurl AWSPUML/QuantumTechnologies/amazon-braket.puml !includeurl AWSPUML/Robotics/amazon-robomaker.puml !includeurl AWSPUML/Satellite/amazon-ground-station.puml !includeurl AWSPUML/SecurityIdentityAndCompliance/amazon-iam.puml !includeurl AWSPUML/SecurityIdentityAndCompliance/amazon-cognito.puml !includeurl AWSPUML/SecurityIdentityAndCompliance/amazon-guardduty.puml !includeurl AWSPUML/SecurityIdentityAndCompliance/amazon-macie.puml !includeurl AWSPUML/SecurityIdentityAndCompliance/amazon-secret-manager.puml !includeurl AWSPUML/SecurityIdentityAndCompliance/amazon-security-hub.puml !includeurl AWSPUML/SecurityIdentityAndCompliance/amazon-shield.puml !includeurl AWSPUML/SecurityIdentityAndCompliance/amazon-waf.puml !includeurl AWSPUML/Storage/amazon-s3.puml !includeurl AWSPUML/Storage/amazon-ebs.puml !includeurl AWSPUML/Storage/amazon-efs.puml !includeurl AWSPUML/Storage/amazon-glacier.puml !includeurl AWSPUML/Storage/amazon-storage-gateway.puml title 点餐系统组件图 actor User actor VIPUser actor Admin actor Merchant package "User Functionality" { [Login/Register] [Search Food] [Browse Menu] [View Food Details] [Add to Cart] [Remove from Cart] [Favorite Food] [Unfavorite Food] [Place Order] [Fill in Personal Information] [Pay] [View Order History] [View Balance] [Edit Nickname] [View Discounted Prices] User --> [Login/Register] : Performs User --> [Search Food] : Performs User --> [Browse Menu] : Performs User --> [View Food Details] : Performs User --> [Add to Cart] : Performs User --> [Remove from Cart] : Performs User --> [Favorite Food] : Performs User --> [Unfavorite Food] : Performs User --> [Place Order] : Performs User --> [Fill in Personal Information] : Performs User --> [Pay] : Performs User --> [View Order History] : Performs User --> [View Balance] : Performs User --> [Edit Nickname] : Performs VIPUser --> [View Discounted Prices] : Performs } package "Admin Functionality" { [Add User Information] [Delete User Information] [Modify User Information] [Set VIP User] Admin --> [Add User Information] : Performs Admin --> [Delete User Information] : Performs Admin --> [Modify User Information] : Performs Admin --> [Set VIP User] : Performs } package "Merchant Functionality" { [Add Food Information] [Delete Food Information] [Modify Food Information] [Withdraw] Merchant --> [Add Food Information] : Performs Merchant --> [Delete Food Information] : Performs Merchant --> [Modify Food Information] : Performs Merchant --> [Withdraw] : Performs } [Login/Register] --> [Amazon Cognito] [Search Food] --> [Amazon Elasticsearch] [Browse Menu] --> [Amazon S3] [View Food Details] --> [Amazon S3] [Add to Cart] --> [Amazon DynamoDB] [Remove from Cart] --> [Amazon DynamoDB] [Favorite Food] --> [Amazon DynamoDB] [Unfavorite Food] --> [Amazon DynamoDB] [Place Order] --> [Amazon EC2] [Fill in Personal Information] --> [Amazon Pinpoint] [Pay] --> [Amazon SNS] [View Order History] --> [Amazon DynamoDB] [View Balance] --> [Amazon RDS] [Edit Nickname] --> [Amazon RDS] @enduml ``` 解释: - 客户端使用Amazon Cognito进行用户登录/注册。 - 搜索美食和浏览菜单使用Amazon Elasticsearch和Amazon S3。 - 美食详情页使用Amazon S3。 - 购物车、收藏美食、加入购物车、从购物车中删除美食使用Amazon DynamoDB。 - 下单和支付使用Amazon EC2和Amazon SNS。 - 个人信息填写使用Amazon Pinpoint。 - 历史订单使用Amazon DynamoDB。 - 用户余额和昵称使用Amazon RDS。 - VIP用户打折功能使用条件语句。 - 管理员和商家功能使用PlantUML库中的图标表示。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值