2828
2929
3030def build_app_home_view (
31- install_url : str | None = None , is_connected : bool = False
31+ install_url : str | None = None ,
32+ is_connected : bool = False ,
33+ bot_user_id : str | None = None ,
3234) -> dict :
3335 """Build the App Home Block Kit view with category buttons.
3436
@@ -37,13 +39,15 @@ def build_app_home_view(
3739 connected and will see a link to install.
3840 is_connected: When ``True``, the user is connected and the MCP
3941 status section shows as connected.
42+ bot_user_id: The bot's user ID for dynamic mentions.
4043 """
44+ mention = f" with <@{ bot_user_id } >" if bot_user_id else ""
4145 blocks = [
4246 {
4347 "type" : "header" ,
4448 "text" : {
4549 "type" : "plain_text" ,
46- "text" : "Hey there :wave: I'm Casey, your IT helpdesk agent." ,
50+ "text" : "Hey there :wave: I'm your IT helpdesk agent." ,
4751 },
4852 },
4953 {
@@ -79,7 +83,7 @@ def build_app_home_view(
7983 "elements" : [
8084 {
8185 "type" : "mrkdwn" ,
82- "text" : "You can also mention me in any channel with `@Casey` or send me a DM." ,
86+ "text" : f "You can also mention me in any channel{ mention } or send me a DM." ,
8387 }
8488 ],
8589 },
@@ -102,7 +106,7 @@ def build_app_home_view(
102106 "elements" : [
103107 {
104108 "type" : "mrkdwn" ,
105- "text" : "Casey has access to search messages, read channels, and more." ,
109+ "text" : "This agent has access to search messages, read channels, and more." ,
106110 }
107111 ],
108112 }
@@ -123,7 +127,7 @@ def build_app_home_view(
123127 "elements" : [
124128 {
125129 "type" : "mrkdwn" ,
126- "text" : "The Slack MCP Server enables Casey to search messages, read channels, and more." ,
130+ "text" : "The Slack MCP Server enables this agent to search messages, read channels, and more." ,
127131 }
128132 ],
129133 }
0 commit comments