Connect Workspace to {platform.charAt(0).toUpperCase() + platform.slice(1)}
Connect your Windmill workspace to your {platform} workspace to trigger a script or a flow with a '/windmill' command.
{#if teamName}
{#if display_name} Connected to Team '{display_name}' {/if}
{#if $enterpriseLicense || platform === 'slack'} {/if}
{:else}
{#if platform === 'teams'} {#if $enterpriseLicense} sendUserToast('Failed to load teams: ' + e.message, true)} /> {/if} {:else} {/if} Not connected
{/if}
Script or flow to run on /windmill command
{#if !teamName || (!$enterpriseLicense && platform === 'teams')}
{/if}
Pick a script or flow meant to be triggered when the `/windmill` command is invoked. Upon connection, templates for a script and flow are available.

The script or flow chosen is passed the parameters `response_url: string` and `text: string` respectively the url to reply directly to the trigger and the text of the command.

It can take additionally the following args: channel_id, user_name, user_id, command, trigger_id, api_app_id

The script or flow is permissioned as group "{platform}" that will be automatically created after connection to {platform.charAt(0).toUpperCase() + platform.slice(1)}.

See more on documentation.