Skip to content

Commit fd5f6a9

Browse files
committed
improvement(google-tasks): add wandConfig for due date timestamp generation
1 parent 411cfc3 commit fd5f6a9

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

apps/sim/blocks/blocks/google_tasks.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,17 @@ export const GoogleTasksBlock: BlockConfig<GoogleTasksResponse> = {
8282
type: 'short-input',
8383
placeholder: '2025-06-03T00:00:00.000Z',
8484
condition: { field: 'operation', value: 'create' },
85+
wandConfig: {
86+
enabled: true,
87+
prompt: `Generate an RFC 3339 timestamp in UTC based on the user's description.
88+
The timestamp should be in the format: YYYY-MM-DDTHH:MM:SS.000Z (UTC timezone).
89+
Examples:
90+
- "tomorrow" -> Calculate tomorrow's date at 00:00:00.000Z
91+
- "next Friday" -> Calculate the next Friday's date at 00:00:00.000Z
92+
- "June 15" -> 2025-06-15T00:00:00.000Z
93+
94+
Return ONLY the timestamp - no explanations, no extra text.`,
95+
},
8596
},
8697
{
8798
id: 'status',
@@ -125,6 +136,17 @@ export const GoogleTasksBlock: BlockConfig<GoogleTasksResponse> = {
125136
type: 'short-input',
126137
placeholder: '2025-06-03T00:00:00.000Z',
127138
condition: { field: 'operation', value: 'update' },
139+
wandConfig: {
140+
enabled: true,
141+
prompt: `Generate an RFC 3339 timestamp in UTC based on the user's description.
142+
The timestamp should be in the format: YYYY-MM-DDTHH:MM:SS.000Z (UTC timezone).
143+
Examples:
144+
- "tomorrow" -> Calculate tomorrow's date at 00:00:00.000Z
145+
- "next Friday" -> Calculate the next Friday's date at 00:00:00.000Z
146+
- "June 15" -> 2025-06-15T00:00:00.000Z
147+
148+
Return ONLY the timestamp - no explanations, no extra text.`,
149+
},
128150
},
129151
{
130152
id: 'status',

0 commit comments

Comments
 (0)