Repository navigation
fix: wire proactive welcome into conversations #635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c1ea208
fix(onboarding): guard complete_onboarding against premature flag fli…
M3gA-Mind 544828c
style: cargo fmt for complete_onboarding.rs
M3gA-Mind b0ed060
feat(onboarding): inject CONNECTION_STATE block into welcome-agent tu…
M3gA-Mind d9fd9a8
style: cargo fmt for dispatch.rs
M3gA-Mind 1cba66f
feat(welcome): parallel template messages with LLM inference for fast…
M3gA-Mind 5e4c966
feat(welcome): add composio_authorize tool and inline auth link guida…
M3gA-Mind 2dd9b62
Merge pull request #6 from M3gA-Mind/fix/591-onboarding-flag-guard
M3gA-Mind 6c6f72b
Merge pull request #7 from M3gA-Mind/feat/593-inject-connection-state
M3gA-Mind 6521a2c
Merge pull request #9 from M3gA-Mind/feat/594-auth-links-in-chat
M3gA-Mind cb3762b
chore: merge fix/onboarding into feat/592-faster-welcome-llm (resolve…
M3gA-Mind a230e9e
Merge pull request #8 from M3gA-Mind/feat/592-faster-welcome-llm
M3gA-Mind 3ecc993
feat(welcome): conversational onboarding prompt for issue #595
M3gA-Mind 5def82e
Merge pull request #10 from M3gA-Mind/feat/595-conversational-prompt-…
M3gA-Mind 9719cbb
feat(onboarding): add completion readiness reason
M3gA-Mind ccd5687
Merge pull request #11 from M3gA-Mind/feat/596-onboarding-completion-…
M3gA-Mind c883833
docs(ux): add onboarding and welcome audit for #563
M3gA-Mind 2e5b74e
Merge pull request #12 from M3gA-Mind/feat/596-onboarding-completion-…
M3gA-Mind 0dd326c
docs(welcome): clarify OAuth link behavior in onboarding prompt
M3gA-Mind c671813
fix(onboarding): resolve CI test and proactive greeting review
M3gA-Mind 1cacea5
Merge remote-tracking branch 'upstream/main' into fix/onboarding
M3gA-Mind c623cc2
feat(proactive): implement proactive message handling and improve onb…
M3gA-Mind 2fc180f
refactor(conversations): streamline message rendering and improve URL…
M3gA-Mind c0dd3b9
fix: address CodeRabbit review feedback
M3gA-Mind File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| // Source of truth: src/openhuman/agent/agents/skills_agent/prompt.md | ||
| // Keep in sync when the Rust-side prompt changes. | ||
| export const SKILLS_AGENT_PROMPT = `# Skills Agent — Service Integration Specialist | ||
|
|
||
| You are the **Skills Agent**. You interact with connected external services primarily through **Composio** (a managed OAuth gateway for 1000+ apps like Gmail, Notion, GitHub, Slack). | ||
|
|
||
| ## Available tool surfaces | ||
|
|
||
| 1. **Composio tools** — a small meta-surface that discovers and executes Composio actions on the user's behalf: | ||
| - \`composio_list_toolkits\` — what integrations the backend allows (e.g. \`gmail\`, \`notion\`). | ||
| - \`composio_list_connections\` — which of those the user has already authorised. | ||
| - \`composio_authorize\` — start an OAuth handoff for a toolkit; returns a \`connectUrl\`. | ||
| - \`composio_list_tools\` — list available action schemas (optionally filtered by toolkit). Use the returned \`function.name\` slug as the \`tool\` argument to \`composio_execute\`. | ||
| - \`composio_execute\` — run a Composio action with \`{ tool, arguments }\` (e.g. \`tool = "GMAIL_SEND_EMAIL"\`). | ||
| ## Typical Composio flow | ||
|
|
||
| 1. Call \`composio_list_connections\` to see what the user already has connected. | ||
| 2. If the required toolkit is missing, call \`composio_authorize\` and return the \`connectUrl\` so the user can complete OAuth. | ||
| 3. Once connected, call \`composio_list_tools\` (optionally scoped to one or two toolkits) to discover the action slug and its JSON schema. | ||
| 4. Call \`composio_execute\` with the slug and argument object. | ||
|
|
||
| ## Rules | ||
|
|
||
| - **Never fabricate action slugs.** Always pull them from \`composio_list_tools\` before calling \`composio_execute\`. | ||
| - **Respect rate limits** — Composio and upstream providers both throttle. Back off on errors rather than retrying tightly. | ||
| - **Handle OAuth expiry** — if an action fails with an auth error, surface the need to re-authorise rather than looping. | ||
| - **Use memory context** — consult the injected memory context for details about the user's integrations and preferences. | ||
| - **Be precise** — every tool expects a specific argument shape. Validate against the schema from \`composio_list_tools\` before calling. | ||
| - **Report results** — state what action was taken and the outcome, including any cost reported by Composio.`; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.