Buscar Texto do Primeiro Artigo de Notícias GDELT
Workflow manual que busca notícias públicas do GDELT e retorna o texto extraído do primeiro artigo.
manual http news gdelt article-text two-step
O que está incluído
| Campo | Valor |
|---|---|
| Nome | Buscar Texto do Primeiro Artigo de Notícias GDELT |
| Tipo | Workflow |
| Trigger | manual |
| Etapas | 2 |
| Entradas | 2 |
JSON Completo
Clique para expandir
{
"description": "Manual workflow that fetches public GDELT news and returns the extracted text of the first article.",
"tags": [
"manual",
"http",
"news",
"gdelt",
"article-text",
"two-step"
],
"document": {
"name": "Fetch First GDELT News Article Text",
"enabled": true,
"log_level": "info",
"trigger": {
"type": "manual"
},
"workflowInput": [
{
"name": "query",
"description": "Search terms for GDELT public news (e.g., climate change, elections, ai policy)",
"schema": {
"type": "string",
"required": true
}
},
{
"name": "max_records",
"description": "Optional max number of news articles to consider (default: 50)",
"schema": {
"type": "string",
"required": false
}
}
],
"steps": [
{
"condition": {
"expr": "true",
"onFailure": "throw",
"resultType": "any"
},
"action": {
"actionType": "actions/network/http/request/send",
"actions/network/http/request/send": {
"method": "GET",
"url": {
"expr": "url_params(\"https://gdelt.adriel.eu/doc\", {\"query\": query, \"mode\": \"artlist\", \"maxrecords\": coalesce(max_records, \"50\"), \"format\": \"json\"})",
"onFailure": "throw",
"resultType": "any"
},
"headers": [],
"returnBuffer": false,
"cache": true
}
}
},
{
"condition": {
"expr": "step_ok(0) && present(step_data(0, \"articles.0.url\"))",
"onFailure": "throw",
"resultType": "any"
},
"action": {
"actionType": "actions/network/http/request/send",
"actions/network/http/request/send": {
"method": "GET",
"url": {
"expr": "url_params(\"https://gdelt.adriel.eu/doc/content\", {\"url\": step_data(0, \"articles.0.url\")})",
"onFailure": "throw",
"resultType": "any"
},
"headers": [],
"returnBuffer": false,
"cache": true
}
}
}
],
"returnExpression": {
"expr": "step_data(1, \"text\", \"\")",
"onFailure": "throw",
"resultType": "any",
"strict": false,
"useSimpleCel": false
},
"customAttributes": {}
}
}
Como Importar
- Baixe o arquivo ZIP usando o botão acima
- Navegue até Configurações da Empresa → Transferência de Dados no seu painel AutoTalk
- Clique em Importar e selecione o arquivo ZIP baixado
- Revise o resumo da importação e confirme
- Todos os IDs de documentos são remapeados automaticamente — nenhuma edição manual de IDs é necessária