创建工作流

创建智能体,选“流程编排型”

获得apikey和appid

调用“运行工作流”接口
curl —location ‘https://hiagent.volcenginepaas.com/api/proxy/api/v1/run\_app\_workflow‘ \
--header ‘Apikey: cuut251l2ienirn7u14g’ \
--header ‘Content-Type: application/json’ \
--data ‘{
“AppID”: “cuut225m5a4fi7vfgtv0”,
“InputData”: “{\“input\“: \“http://www.sse.com.cn/disclosure/listedinfo/announcement/c/new/2024-04-20/600926\_20240420\_7GKC.pdf\\"}“,
“UserID”: “112222113”
}’
此时会返回一个RunID:

使用RunID调用查询运行结果的接口
curl —location ‘https://hiagent.volcenginepaas.com/api/proxy/api/v1/query\_run\_app\_process‘ \
--header ‘Apikey: cuut251l2ienirn7u14g’ \
--header ‘Content-Type: application/json’ \
--data ‘{
“AppID”: “cuut225m5a4fi7vfgtv0”,
“RunID”: “8d55120a85b54171be3d09cbd869adc1”,
“UserID”: “112222113”
}’
获得运行结果:

