Stefan-neo
Stefan-neo
WWindmill
Created by Stefan-neo on 4/3/2024 in #help
Slack Bot Development in Windmill
Hi, wanted to ask how feasible it would be to develop Slack App behavior solely with Windmill. Most behavior could be set up nicely and leverages Flows, but it looks like deployment of apps to Slack (https://api.slack.com/automation/deploy) would be hard to achieve.
4 replies
WWindmill
Created by Stefan-neo on 3/24/2024 in #help
Trying to run GraphQL script with windmill TS client throws error
Hi there, trying to run a windmill GraphQL script from another TS script via the windmill TS client but I'm encountering an issue. There's not much documentation on the TS client side so I'm unsure what the issue may be. Given my GraphQL script has the following params: api: Object (the one that is always created for GraphQL scripts), title: string, issueId: string, url: string, I am receiving the following issue when trying to call it via path from my TS script:
const graphQLResource = await wmill.getResource("f/resources/myResource")
await wmill.runScript("f/testDir/testAction", undefined, {
api: graphQLResource,
title: "Test Title",
issueId: "Test",
url: "https://www.google.com/"
}, true)
const graphQLResource = await wmill.getResource("f/resources/myResource")
await wmill.runScript("f/testDir/testAction", undefined, {
api: graphQLResource,
title: "Test Title",
issueId: "Test",
url: "https://www.google.com/"
}, true)
Error:
SyntaxError: Failed to parse JSON
at <parse> (:0)
at json (native)
at <anonymous> (/tmp/bun/node_modules/windmill-client/dist/client.js:238:5)
SyntaxError: Failed to parse JSON
at <parse> (:0)
at json (native)
at <anonymous> (/tmp/bun/node_modules/windmill-client/dist/client.js:238:5)
Edit: Same error when the args parameter is using [] instead of {}
12 replies
WWindmill
Created by Stefan-neo on 3/22/2024 in #help
OpenAI Function Calling with Windmill Actions
Hi, I'm setting up scripts that to make use of OpenAI's function calling API. At this time I'm defining all functions and their behavior in one single script, but was wondering if it would be possible to fetch and execute Windmill Actions (Scripts) within the TS script in which I'm using the OpenAI function calling API. This would open up a lot of possibilities to set up flows and automations that select from a variety of workspace actions relevant to my use-cases.
3 replies
WWindmill
Created by Stefan-neo on 3/17/2024 in #help
GraphQL schema length causes token limit to be exceeded
Hi, I'm trying to write GraphQL queries via GPT-4 code generation but run into an issue caused by the size of the GraphQL schema (from Linear) that is automatically used as context in the prompt. The size of the GraphQL schema bloats the prompt, resulting in a token size of is 138134 tokens, thereby exceeding the GPT-4 12k token limit. Any ideas how the context size can be adjusted?
5 replies