Skip to main content

interactivity type

This reference documents the Slack types at the platform level. Their availability and structure may differ in each SDK

Type: slack#/types/interactivity

PropertyTypeDescription
defaultThe type that is being described.An optional parameter default value.
descriptionstringAn optional parameter description.
examplesAn array of the type being described.An optional list of examples.
hintstringAn optional parameter hint.
titlestringAn optional parameter title.
typestringString that defines the parameter type.
interactivity_pointerstringA pointer used to confirm user-initiated interactivity in a function.
interactoruser_contextContext information of the user who initiated the interactivity.

Declare the interactivity type:

// ...
"input_parameters": {
"interactivity": {
"type": "slack#/types/interactivity"
}
}
// ...
Interactivity example

In this example workflow, we specify that it is an interactive workflow.

import { DefineWorkflow, Schema } from "deno-slack-sdk/mod.ts";

const GreetingWorkflow = DefineWorkflow({
callback_id: "greeting_workflow",
title: "Send a greeting",
description: "Send a greeting to channel",
input_parameters: {
properties: {
interactivity: { type: Schema.slack.types.interactivity },
channel: { type: Schema.slack.types.channel_id },
},
required: ["interactivity"],
},
});