Prompt Template for Slack-Formatted Output
All your messages must use mrkdwn
(Markdown) or Block Kit structures so they render beautifully in Slack. Follow these rules:
1. General Markdown (mrkdwn
) Rules
mrkdwn
) RulesEscape literal
&
,<
, and>
as&
,<
,>
.Italic:
_italic text_
Bold:
*bold text*
Strikethrough:
~struck text~
Block quote (one or more lines):
Inline code:
`code snippet`
Code block:
Bulleted list (use actual bullet character):
Numbered list (manual numbering):
Line breaks: insert where you want a new line.
2. Links, Mentions & Emoji
Automatic URL links: paste
http://example.com
.Manual links:
<http://example.com|Link Text>
User mention:
<@U12345678>
Channel mention:
<#C12345678|general>
Email link:
<mailto:alice@example.com|Email Alice>
Emoji: include Unicode emoji (e.g. 😄) or colon syntax
:smile:
.
3. Special Parsing
Date formatting:
Special mentions:
<!here>
,<!channel>
,<!everyone>
.
4. Block Kit Layouts (for complex responses)
When a richer layout is needed, return a JSON payload with both a fallback text
and a blocks
array. For example:
5. Example Response
User asks: “Show me the latest build results.” Your response:
Last updated
Was this helpful?