n8n: scheduled company credit score monitoring workflow
还没有人认领这个 Issue。
评估
调研方向
Start by reviewing the PHP SDK's existing examples and API client usage, then check whether the credit score endpoint supports change webhooks and what polling limits apply. The issue sketches a daily n8n flow and a possible examples/n8n/ template, but leaves those design questions open; done would need an agreed alert workflow and a documented, runnable example.
由索引模型根据 Issue 内容生成。
描述
Idea
Build an n8n workflow that runs daily, fetches the credit score of a watchlist of companies from Openapi, and sends a Slack alert if any score drops below a threshold.
Pseudocode for the PHP side
use Openapi\Client;
$client = new Client($token);
$watchlist = ['IT01234567890', 'IT09876543210'];
foreach ($watchlist as $vatNumber) {
$score = json_decode(
$client->get('https://risk.openapi.com/IT-creditscore', ['cf' => $vatNumber]),
true
);
if ($score['value'] < 40) {
// trigger Slack webhook from n8n
yield ['cf' => $vatNumber, 'score' => $score['value'], 'alert' => true];
}
}
n8n workflow sketch
Cron (daily 8am) → HTTP Request (PHP proxy) → IF score < 40 → Slack message
Open questions
- Is there a way to subscribe to score changes via webhook instead of polling?
- What is the recommended polling interval to avoid burning API credits?
- Would an official n8n workflow template JSON be something the project could ship in
examples/n8n/?
- 主要语言
- PHP
- 星标
- 20
- 派生
- 3
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
openapi/openapi-php-sdk 的其他 Issue
-
Improve PHPDoc Consistency Across the Codebase可能重新可做 @Seraphim200001 于 140 天前认领,目前没有进行中的 PR。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
openapi/openapi-php-sdk#36 · 3 条评论 ·
-
enhancement help wanted
难度 5/5 一周以上 新手友好度 25/100
openapi/openapi-php-sdk#34 ·
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
openapi/openapi-php-sdk#32 ·
-
help wanted question
难度 5/5 一周以上 新手友好度 25/100
openapi/openapi-php-sdk#31 ·
-
enhancement good first issue
难度 5/5 一周以上 新手友好度 25/100
openapi/openapi-php-sdk#30 ·
查看 openapi/openapi-php-sdk 的全部 Issue
相似的 Issue
-
sync-en
难度 1/5 1-3 小时 新手友好度 68/100
维护者通常 4 天内回复
-
Перевод устарел
难度 2/5 半天 新手友好度 62/100
-
feature request
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
home php
难度 2/5 1-3 小时 新手友好度 62/100
vincent-peugnet/wcms#670 ·
-
难度 2/5 1-3 小时 新手友好度 62/100
freescout-help-desk/freescout#5731 · 1 条评论 ·
维护者通常 1 天内回复