Skip to content

Proxy the "Turndown Recovery Agent" Calls #4

@JFeimster

Description

@JFeimster

You have an excellent, functional mock-up of the Turndown Recovery Agent on index.html and dashboard.html. However, the current fetch() call handles the system prompt and API key on the client-side.

Recommendation: To make this production-ready, create a simple serverless function (e.g., an AWS Lambda or Vercel Edge Function). Your HTML files should POST the bank rejection note to your secure endpoint, which then appends the Moonshine Capital system prompt, makes the call to Gemini, and returns the generated email. This protects your proprietary prompts and API keys.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions