关于 instagram
这是用于 Instagram 发布内容及处理媒体和洞察数据的 Refly 技能。它接收帖子文案和图片,或洞察时间段,并通过工作流执行相应操作。
主要功能
- 01发布 Instagram 帖子
- 02管理媒体
- 03获取洞察数据
- 04运行发布工作流
- 05返回帖子操作状态
适用场景
- 01发布带文案的图片
- 02查看指定时间段的 Instagram 洞察
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ refly-ai/ refly-skills --skill instagram安装后在 Claude Code 中输入/instagram确认已加载。
附带文件README.md
详细介绍
集成 Instagram,用于社交媒体。适用于以下需求:(1)在 Instagram 上发布内容;(2)管理媒体和洞察数据;或(3)自动化 Instagram 发布工作流。
输入
以 JSON 格式提供输入:
{
"post_caption": "Caption text for your Instagram post",
"post_image": "<file-reference>",
"insights_period": "Time period for analytics insights (e.g., 'last 7 days', 'last 30 days')"
}
执行(模式 C:操作)
步骤 1:运行 Skill 并获取运行 ID
RESULT=$(refly skill run --id skpi-ouiqydzmtpr5oeu9i6b6akfn --input '{
"image_url": "https://example.com/image.jpg",
"caption": "Check out our new product! #launch"
}')
RUN_ID=$(echo "$RESULT" | jq -r '.payload.workflowExecutions[0].id')
# RUN_ID is we-xxx format, use this for workflow commands
步骤 2:在浏览器中打开工作流并等待完成
open "https://refly.ai/workflow/c-z15u3sezyx46cvplswiukpel"
refly workflow status "$RUN_ID" --watch --interval 30000
步骤 3:确认操作状态
# Confirm post published
STATUS=$(refly workflow detail "$RUN_ID" | jq -r '.payload.status')
echo "Action completed with status: $STATUS"
预期输出
- 类型:API 响应
- 格式:JSON 发布确认
- 操作:确认帖子已成功发布
规则
遵循基础 Skill 工作流:~/.claude/skills/refly/SKILL.md
评论
支持 Markdown