What it is for
AskNews component allows you to search and retrieve enriched real-time and historical news articles using AskNews API.
AskNews triggers react instantly to events in the app.
Set up the connection
Authentication type: API key or token
- 1Sign in to AskNews and look for the API or integrations section in its settings.
- 2Create an API key or token with the permissions you need and copy it.
- 3In flooows, add a AskNews step, click "Connect" and paste it.
- 4Save the connection: it is stored encrypted and is never shown in plain text.
Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.
How to use it in a flow
- Search News: fill in Query; use the data selector to map values from earlier steps.
- Generate News Knowledge Graph: fill in Query; use the data selector to map values from earlier steps.
- Get Article by ID: fill in Article ID(s); use the data selector to map values from earlier steps.
Tips
- •Test each step before publishing to see the exact output structure.
- •Enable retries on steps that call external services.
Triggers (1)
Events that can start a flow. Expand each one to see its fields.
Alert for QueryWebhook (paste the URL in the app)6 fields
| Field | Type | Required |
|---|---|---|
| Alert Query | Long text | Yes |
| Cron Schedule | Text | Yes |
| Model | Fixed list | No |
| Always Trigger | Yes / No | No |
| Repeat | Yes / No | No |
| Alert Title | Text | No |
Actions (8)
Operations available as flow steps. Expand each one to see its fields.
Search News8 fields
| Field | Type | Required |
|---|---|---|
| Query | Text | Yes |
| Number of Articles | Number | No |
| Search Method | Fixed list | No |
| Return Type | Fixed list | No |
| Search Historical Archive | Yes / No | No |
| Hours Back | Number | No |
| Categories | Multi-select | No |
| Similarity Score Threshold | Number | No |
Generate News Knowledge Graph10 fields
| Field | Type | Required |
|---|---|---|
| Query | Text | Yes |
| Return Articles | Yes / No | No |
| Min Cluster Probability | Number | No |
| Geo Disambiguation | Yes / No | No |
| Query Method | Fixed list | No |
| Number of Articles | Number | No |
| Search Historical | Yes / No | No |
| Hours Back | Number | No |
| Categories | Multi-select | No |
| Visualize With | Text | No |
Get Article by ID1 fields
| Field | Type | Required |
|---|---|---|
| Article ID(s) | List of values | Yes |
Chat Completion10 fields
| Field | Type | Required |
|---|---|---|
| User Message | Long text | Yes |
| Model | Fixed list | No |
| Temperature | Number | No |
| Max Tokens | Number | No |
| Journalist Mode | Yes / No | No |
| Inline Citations | Fixed list | No |
| Append References | Yes / No | No |
| Include AskNews Watermark | Yes / No | No |
| Conversational Awareness | Yes / No | No |
| System Prompt | Long text | No |
Search Stories (Narrative Clusters)5 fields
| Field | Type | Required |
|---|---|---|
| Query | Text | No |
| Search Method | Fixed list | No |
| Categories | Multi-select | No |
| Expand Updates | Yes / No | No |
| Sort By | Fixed list | No |
Create a Newsletter13 fields
| Field | Type | Required |
|---|---|---|
| Newsletter Name | Text | Yes |
| Query | Long text | Yes |
| Cron Schedule | Text | Yes |
| Model | Fixed list | Yes |
| Sender Email | Text | Yes |
| Subject | Text | No |
| Logo URL | Text | No |
| Reply-To Email | Text | No |
| Audience ID | Text | No |
| Resend API Key | Text | No |
| Is Public | Yes / No | No |
| Is Active | Yes / No | No |
| Expiration Date | Text | No |
Update a Newsletter14 fields
| Field | Type | Required |
|---|---|---|
| Newsletter ID | Text | Yes |
| Newsletter Name | Text | No |
| Query | Long text | No |
| Cron Schedule | Text | No |
| Model | Fixed list | No |
| Subject | Text | No |
| Sender Email | Text | No |
| Logo URL | Text | No |
| Reply-To Email | Text | No |
| Audience ID | Text | No |
| Resend API Key | Text | No |
| Is Public | Yes / No | No |
| Is Active | Yes / No | No |
| Expiration Date | Text | No |
Custom API Call10 fields
| Field | Type | Required |
|---|---|---|
| url | Dynamic fields | Yes |
| Method | Fixed list | Yes |
| Headers | Key / value pairs | No |
| Query Parameters | Key / value pairs | No |
| Body Type | List (from your account) | No |
| Body | Dynamic fields | No |
| Response is Binary | Yes / No | No |
| Return Error as Output | Yes / No | No |
| Timeout | Number | No |
| Follow redirects | Yes / No | No |
Common errors
Authentication error
The connection expired or the key was revoked: reconnect it from Connections.
Field not found or empty
Re-test the previous step and remap the field in the data selector.
Field types
"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps
