AI PPT Generation
This skill allows OpenClaw agents to generate AI notes, Based solely on the video address provided by the user.
Setup
- 1. API Key: Ensure the BAIDUAPIKEY environment variable is set with your valid API key.
- Environment: The API key should be available in the runtime environment.
API table
| name | path | description |
|---|
| AINotesTaskCreate | /v2/tools/ainote/taskcreate | Create AI notes task based on the video address provided by the user |
| AINotesTaskQuery |
/v2/tools/ai_note/query |Query AI notes task result based on task id|
Workflow
- 1. The AINotesTaskCreate API executes the Python script located at INLINECODE0
- The AINotesTaskQuery API executes the Python script located at INLINECODE1
- The first step ,call the AINotesTaskCreate API to create a task and get the task ID, must give a video address.
- The second step ,call the AINotesTaskQuery API to query the task result based on the task ID.
- Repeat the second step until the task status is completed.The task success identifier is status=10002. status=10000 indicates that the task is in progress. All other status codes are failures
- Each item in the note list is a note content. For each item in the list: the tpl_no field represents the type of stored notes, 1 - manuscript notes, 2 - outline notes, 3 - graphic and text notes. The "detail" field is for note details. In "detail", "status" represents the note status, with 10002 indicating success,with status=10000 indicating progressing and other status codes indicating failure. "content" indicates the note result. The mind map is located at the top of the outline note and is marked by the "Mind" tag
APIS
AINotesTaskCreate API
Parameters
- -
video_url: the url of the video (required)
Example Usage
CODEBLOCK0
PPTOutlineGenerate API
Parameters
- -
task_id: task id from AINotesTaskCreate API return(required)
Example Usage
CODEBLOCK1
AI 笔记生成
该技能允许OpenClaw智能体根据用户提供的视频地址生成AI笔记。
设置
- 1. API密钥: 确保BAIDUAPIKEY环境变量已设置为有效的API密钥。
- 环境: API密钥应在运行时环境中可用。
API表格
| 名称 | 路径 | 描述 |
|---|
| AINotesTaskCreate | /v2/tools/ainote/taskcreate | 根据用户提供的视频地址创建AI笔记任务 |
| AINotesTaskQuery |
/v2/tools/ai_note/query |根据任务ID查询AI笔记任务结果|
工作流程
- 1. AINotesTaskCreate API执行位于scripts/ainotestaskcreate.py的Python脚本
- AINotesTaskQuery API执行位于scripts/ainotestaskquery.py的Python脚本
- 第一步,调用AINotesTaskCreate API创建任务并获取任务ID,必须提供视频地址。
- 第二步,调用AINotesTaskQuery API根据任务ID查询任务结果。
- 重复第二步,直到任务状态变为已完成。任务成功标识为status=10002。status=10000表示任务正在进行中。所有其他状态码均为失败
- 笔记列表中的每一项都是一个笔记内容。对于列表中的每一项:tpl_no字段表示存储笔记的类型,1 - 文稿笔记,2 - 大纲笔记,3 - 图文笔记。detail字段为笔记详情。在detail中,status表示笔记状态,10002表示成功,status=10000表示进行中,其他状态码表示失败。content表示笔记结果。思维导图位于大纲笔记的顶部,并由Mind标签标记
API接口
AINotesTaskCreate API
参数
使用示例
bash
BAIDU
APIKEY=xxx python3 scripts/ai
notestask
create.py https://xxxxx.bj.bcebos.com/1%E5%88%86%E9%92%9F%E6%9C%89%E5%AD%97%E5%B9%95.mp4
PPTOutlineGenerate API
参数
- - task_id:来自AINotesTaskCreate API返回的任务ID(必填)
使用示例
bash
BAIDU
APIKEY=xxx python3 scripts/ai
notestask_query.py 26943ed4-f5a9-4306-a05b-b087665433a0