feat: add opt-in automated reply sending#45
Open
Buooy wants to merge 1 commit into
Open
Conversation
Introduce an AUTOMATED_SENDING_ENABLED Worker config flag for the new-email automation flow. The default remains draft-only, but when enabled the inbound email handler sends verified replies automatically instead of saving drafts. Thread the flag through the agent tool setup, adapt the draft_reply tool behavior for the automated workflow, update chat/status messages for sent replies, and document the opt-in behavior in the README and Wrangler config.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds an opt-in configuration flag that allows the new-email automation flow to send verified replies automatically instead of only saving draft replies.
By default, behavior remains unchanged: inbound emails are read by the agent, and a draft reply is created for operator review. When
AUTOMATED_SENDING_ENABLEDis set totrue, the same inbound automation flow sends the verified reply automatically.Changes
AUTOMATED_SENDING_ENABLEDtowrangler.jsonc, defaulting tofalse.new-emailhandler to pass the automated sending setting into the agent tool setup.draft_replytool behavior only for the automated new-email workflow:toolSendReply.draft_replysends in this workflow when the flag is enabled.Created draft reply to ...Sent automated reply to ...Behavioral Changes
No change with the default config, inbound emails continue to produce draft replies only.
When enabled, the new-email automation flow sends verified replies automatically after the agent generates them.