8000 chore: instruct the "Send Email" tool that it cannot forward or reply to emails by drpebcak · Pull Request #98 · obot-platform/tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: instruct the "Send Email" tool that it cannot forward or reply to emails #98

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 1 commit into from
Oct 15, 2024
Merged
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
18 changes: 1 addition & 17 deletions google/gmail/tool.gpt
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ Param: max_results: Maximum number of emails to list (Optional: Default will lis

---
Name: Send Email
Description: Send an email from the user's Gmail account.
Context: Forward Email Context
Description: Send an email from the user's Gmail account. Do not attempt to forward or reply to emails using this tool.
Credential: ./credential
Param: to_emails: A comma separated list of email addresses to send the email to
Param: cc_emails: A comma separated list of email addresses to cc the email to (Optional)
Expand All @@ -44,21 +43,6 @@ Param: message: Message body of the email.

#!/usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/sendEmail.py

---
Name: Forward Email Context
Type: context

#!sys.echo

## Instructions for sending a forwarded email with the Send Email tool
When forwarding an email, retrieve the contents of the original email using the Read Email tool.
Call the `Send Email` tool using this data with the following modifications:
- prepend `Fwd: ` to the subject
- add the original message as a quoted reply in the message body, with the following template prepended to the original message: `---------- Forwarded message ---------\nFrom: <original_sender>\nDate: <original_date>\nSubject: <original_subject>\nTo: <original_recipient>`
- if the user has an additional message to add, include it above the quoted reply

## End of instructions for sending a forwarded email with the Send Email tool

---
Name: Delete Email
Description: Delete an email in a user's Gmail account.
Expand Down
0