Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/slackbot/src/slackbot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
display_callable_signature,
explore_module_offerings,
get_latest_prefect_release_notes,
get_support_resources,
read_github_issues,
)
from slackbot.settings import settings
Expand Down Expand Up @@ -185,6 +186,7 @@ def create_agent(
display_callable_signature, # check the work of the research agent, verify signatures of callable objects
check_cli_command, # verify CLI commands before suggesting them
get_latest_prefect_release_notes, # get the latest release notes for Prefect
get_support_resources, # provide official support contact information
],
deps_type=UserContext,
)
Expand Down
17 changes: 17 additions & 0 deletions examples/slackbot/src/slackbot/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,3 +272,20 @@ def check_cli_command(command: str, args: list[str] | None = None) -> str:
return f"Command '{full_command[0]}' not found. Make sure it's installed and in PATH."
except Exception as e:
return f"Error running command: {str(e)}"


def get_support_resources() -> dict[str, str]:
"""
Get available support resources and contact information for Prefect users.

Use this tool when users ask about getting help, support, or contacting Prefect.
Prioritizes community resources for open source users, with email support for customers.

Returns:
dict: Available support resources prioritized by user type
"""
return {
"github_discussions": "https://github.com/PrefectHQ/prefect/discussions",
"github_issues": "https://github.com/PrefectHQ/prefect/issues",
"customer_support_email": "help@prefect.io (for existing customers only)",
}
Loading