Skip to content

feat: inject platform base_url into agent system prompt and webhook URLs#335

Open
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:pr/agent-prompt-base-url
Open

feat: inject platform base_url into agent system prompt and webhook URLs#335
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:pr/agent-prompt-base-url

Conversation

@nap-liu
Copy link
Copy Markdown

@nap-liu nap-liu commented Apr 8, 2026

Summary

  • Agent system prompt now includes platform URL patterns (webhook, public page, file download, gateway)
  • list_triggers returns full webhook URLs instead of relative paths
  • Uses existing platform_service.get_public_base_url()

Test plan

  • E2E: asked Morty for platform URL → correctly returned all 5 URL patterns

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nap-liu
Copy link
Copy Markdown
Author

nap-liu commented Apr 14, 2026

This PR is small and independent (2 files, +33/-3) and merges cleanly against current upstream/main. It injects the platform base_url into agent system prompts and webhook URLs so agents can generate correct public links regardless of how the request reached the backend.

Would appreciate a dedicated review here rather than through the PRG-02 bundle (#366).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant