Skip to main content

assistant.threads.setSuggestedPrompts method

Welcome to the new home of Slack developer docs!

We're still building and not all features are available quite yet. Enjoy this peek into the future!

Not ready for the future? Return to the past at api.slack.com.

Usage info

Use this method to set up to four suggested prompts in an app assistant thread.

This method accepts both an optional title attribute to describe the entire list of prompts, as well as the prompt list. Each prompt in the list should have a title and message attribute defined.

Example request:

{
"channel_id": "D2345SFDG",
"thread_ts": "1724264405.531769",
"title": "Welcome. What can I do for you?",
"prompts": [
{
"title": "Generate ideas",
"message": "Pretend you are a marketing associate and you need new ideas for an enterprise productivity feature. Generate 10 ideas for a new feature launch.",
},
{
"title": "Explain what SLACK stands for",
"message": "What does SLACK stand for?",
},
{
"title": "Describe how AI works",
"message": "How does artificial intelligence work?",
},
]
}

Response