Skip to content

Commit 405f2d8

Browse files
authored
Changelogs, support Youtube videos, captures in docs (windmill-labs#845)
1 parent 210fa7a commit 405f2d8

File tree

9 files changed

+114
-23
lines changed

9 files changed

+114
-23
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
slug: triggers-captures
3+
title: Triggers and captures
4+
version: v1.445.1
5+
tags: ['Flow editor', 'Code editor']
6+
description: Capture triggers inputs from test mode.
7+
features:
8+
[
9+
'Capture and record webhook trigger calls in Test mode',
10+
'Reuse captured trigger inputs for testing',
11+
'Update flow input schema directly from captured test data',
12+
'Support for different argument types (numbers, strings)',
13+
'Easy deployment and testing with saved arguments'
14+
]
15+
docs: https://www.windmill.dev/docs/getting_started/triggers
16+
video: https://www.youtube.com/watch?v=nI3P3q4Okx8
17+
---

changelog/2025-01-24-postgres-triggers/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ features:
1414
"Automatically generate TypeScript script templates for tracked tables and schemas."
1515
]
1616
docs: /docs/core_concepts/postgres_triggers
17-
video: /videos/postgres_triggers.mp4
17+
video: https://www.youtube.com/watch?v=V50Jl4D_RTY
1818
---
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
slug: more-ai-models
3+
version: v1.457.0
4+
title: More AI models
5+
tags: ['AI', 'Code editor']
6+
description: Windmill now supports more AI models.
7+
features:
8+
[
9+
'OpenAI GPT-4o',
10+
'OpenAI GPT-4o-mini',
11+
'Anthropic Claude 3.5 Sonnet',
12+
'Anthropic Claude 3.5 Haiku',
13+
'Mistral Codestral',
14+
'DeepSeek Chat',
15+
'DeepSeek Reasoner',
16+
'Google Gemini 1.5 Pro',
17+
'Google Gemini 2.0 Flash',
18+
'Google Gemini 1.5 Flash',
19+
'Groq Llama 3.3 70B Versatile',
20+
'Groq Llama 3.1 8B Instant',
21+
'OpenRouter Meta Llama 3.2 3B Instruct',
22+
'Custom AI provider',
23+
]
24+
image: ./more_ai_models.png
25+
docs: /docs/core_concepts/ai_generation/#models
26+
---
261 KB
Loading

docs/core_concepts/22_ai_generation/index.mdx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,17 @@ The AI assistant can generate CRON [schedules](../1_scheduling/index.mdx) from a
194194

195195
## Models
196196

197-
Windmill AI supports natively OpenAI's [GPT-4o](https://platform.openai.com/docs/models/gpt-4o), Anthropic's [Claude 3.5](https://docs.anthropic.com/en/docs/models/claude-3-5-sonnet) and Mistral's [Codestral](https://mistral.ai/technology/#models).
198-
199-
Additionnaly, you can run all Windmill AI features on a specified Azure OpenAI deployed model.
197+
Windmill AI supports natively:
198+
- OpenAI's [GPT-4o](https://platform.openai.com/docs/models/gpt-4o) and [GPT-4o-mini](https://platform.openai.com/docs/models/gpt-4o-mini)
199+
- Anthropic's [Claude 3.5 Sonnet](https://docs.anthropic.com/en/docs/models/claude-3-5-sonnet) and [Claude 3.5 Haiku](https://docs.anthropic.com/en/docs/models/claude-3-5-haiku)
200+
- Mistral's [Codestral](https://mistral.ai/technology/#models)
201+
- DeepSeek's [Chat](https://deepseek.ai/models) and [Reasoner](https://deepseek.ai/models)
202+
- Google's [Gemini 1.5 Pro](https://ai.google.dev/models/gemini), [Gemini 2.0 Flash](https://ai.google.dev/models/gemini), and [Gemini 1.5 Flash](https://ai.google.dev/models/gemini)
203+
- Groq's [Llama 3.3 70B Versatile](https://groq.com/models) and [Llama 3.1 8B Instant](https://groq.com/models)
204+
- OpenRouter's [Meta Llama 3.2 3B Instruct](https://openrouter.ai/models)
205+
206+
### Custom models
207+
208+
Additionnaly, you can run all Windmill AI features on a custom AI provider that is OpenAI API compatible.
200209

201210
You need to specify the base path of the model in the [instance settings](../../advanced/18_instance_settings/index.mdx#azure-openai-base-path).

docs/core_concepts/48_sqs_triggers/index.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SQS Triggers
1+
# SQS triggers
22

33
Windmill can connect to an [SQS](https://aws.amazon.com/sqs/) queue and trigger runnables (scripts, flows) in response to messages received.
44
SQS triggers is a self-hosted Enterprise feature.
@@ -9,22 +9,22 @@ For more details on SQS, see the [AWS SQS Documentation](https://docs.aws.amazon
99

1010
---
1111

12-
## How to Use
12+
## How to use
1313

14-
- **Pick an AWS Resource**
15-
- Select an existing AWS resource or create a new one.
14+
- **Pick an AWS resource**
15+
- Select an existing [AWS resource](../../integrations/aws.md) or create a new one.
1616
- The AWS resource must have permissions to interact with SQS.
1717

18-
- **Select the Runnable to Execute**
18+
- **Select the runnable to execute**
1919
- Choose the runnable (script or flow) that should be executed when a message arrives in the queue.
2020
- The message will be passed as a JSON object to the runnable.
2121

22-
- **Provide an SQS Queue URL**
22+
- **Provide an SQS queue URL**
2323
- Enter the **Queue URL** of the SQS queue that should trigger the runnable.
2424
- You can find the Queue URL in the AWS Management Console under SQS.
2525
- For more details, see the [SQS Queue URL Documentation](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-message-identifiers.html#sqs-queue-url).
2626

27-
- **Choose (Optional) Message Attributes**
27+
- **Choose (optional) message attributes**
2828
- Specify which message attributes should be included in the triggered event.
2929
- These attributes can carry metadata, such as sender information or priority levels.
3030
- For more details, see the [SQS Message Attributes Documentation](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes).
@@ -34,19 +34,19 @@ For more details on SQS, see the [AWS SQS Documentation](https://docs.aws.amazon
3434

3535
Below are code examples demonstrating how to handle SQS messages in your Windmill scripts. You can either process messages directly in a basic script or use a preprocessor for more advanced message handling and transformation before execution.
3636

37-
### Basic Script Example
37+
### Basic script example
3838

3939
```TypeScript
4040
export async function main(msg: string) {
4141
// do something with the message
4242
}
4343
```
4444

45-
### Using a Preprocessor
45+
### Using a preprocessor
4646

4747
If you use a [preprocessor](../43_preprocessors/index.mdx), the preprocessor function receives an SQS message with the following fields:
4848

49-
#### Field Descriptions
49+
#### Field descriptions
5050

5151
- **`queue_url`**: The URL of the SQS queue that received the message.
5252
- **`message_id`**: A unique identifier assigned to each message by SQS.

docs/getting_started/6_flows_quickstart/index.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,20 @@ There are several ways to trigger a flow with Windmill.
252252
6. Using [trigger scripts](../../flows/10_flow_trigger.mdx) to trigger only if a condition has been met.
253253
7. [Webhooks](../../core_concepts/4_webhooks/index.mdx). Each Flow created in the app gets autogenerated webhooks. You can see them once you flow is saved. You can even [trigger flows without leaving Slack](/blog/handler-slack-commands)!
254254

255+
You can test your triggers in test mode:
256+
257+
<iframe
258+
style={{ aspectRatio: '16/9' }}
259+
src="https://www.youtube.com/embed/nI3P3q4Okx8"
260+
title="YouTube video player"
261+
frameBorder="0"
262+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
263+
allowFullScreen
264+
className="border-2 rounded-lg object-cover w-full dark:border-gray-800"
265+
></iframe>
266+
267+
<br />
268+
255269
<div className="grid grid-cols-2 gap-6 mb-4">
256270
<DocCard
257271
color="teal"

docs/getting_started/8_triggers/index.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,4 +333,18 @@ You could set your script in a flow after a Trigger script to have it run only w
333333
description="Trigger scripts are designed to pull data from an external source and return all of the new items since the last run, without resorting to external webhooks."
334334
href="/docs/flows/flow_trigger"
335335
/>
336-
</div>
336+
</div>
337+
338+
## Test triggers
339+
340+
You can test your triggers in test mode:
341+
342+
<iframe
343+
style={{ aspectRatio: '16/9' }}
344+
src="https://www.youtube.com/embed/nI3P3q4Okx8"
345+
title="YouTube video player"
346+
frameBorder="0"
347+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
348+
allowFullScreen
349+
className="border-2 rounded-lg object-cover w-full dark:border-gray-800"
350+
></iframe>

src/theme/BlogPostItem/Container/index.js

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,25 @@ export default function BlogPostItemContainer({ children, className }) {
126126
</div>
127127
) : video ? (
128128
<div className="relative pb-[56.25%] h-0 overflow-hidden rounded-lg shadow-lg border my-8">
129-
<video
130-
src={video}
131-
className="absolute top-0 left-0 w-full h-full object-cover"
132-
autoPlay
133-
muted
134-
loop
135-
disableRemotePlayback
136-
/>
129+
{video.includes('youtube.com') ? (
130+
<iframe
131+
className="absolute top-0 left-0 w-full h-full"
132+
src={`https://www.youtube.com/embed/${video.split('v=')[1]}`}
133+
title="YouTube video player"
134+
frameBorder="0"
135+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
136+
allowFullScreen
137+
/>
138+
) : (
139+
<video
140+
src={video}
141+
className="absolute top-0 left-0 w-full h-full object-cover"
142+
autoPlay
143+
muted
144+
loop
145+
disableRemotePlayback
146+
/>
147+
)}
137148
</div>
138149
) : (
139150
''

0 commit comments

Comments
 (0)