Skip to content

Commit

Permalink
added screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffxtang committed Dec 7, 2024
1 parent 83d300f commit a3aa840
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
Binary file added recipes/use_cases/gmail_agent/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added recipes/use_cases/gmail_agent/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added recipes/use_cases/gmail_agent/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion recipes/use_cases/gmail_agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ It's time to see an agent app in action and enjoy some coding. Below is a previe
* how many emails do i have from [email protected]?
* how about from [email protected]?

[Here](./examples_log.txt) is a complete example interaction log with Gmagent.
[Here](./examples_log.txt) is an example interaction log with Gmagent, with some screenshots of the interaction below (the user inputs and Gmagent outputs are after Your ask: and Gmagent: ; what's between ---- are Llama outputs and tool calling results):

![](1.png)
![](2.png)
![](3.png)


# Setup and Installation

Expand Down
14 changes: 7 additions & 7 deletions recipes/use_cases/gmail_agent/examples_log.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
python main.py
python main.py [email protected]
Hello! I'm Gmagent, your friendly Gmail assistant. I'm here to help you with any Gmail-related tasks. What can I do for you today? Do you need help checking email, composing a new message, or perhaps something else?

Your ask: do i have any emails with attachments?
Expand Down Expand Up @@ -132,14 +132,14 @@ These examples are likely from the report you mentioned, which explores the perf

If you'd like to discuss any specific points or ask questions about these examples, I'm here to help!

Your ask: Draft an email to jeffxtang@meta.com saying working on it and will keep you updated. thanks for your patience.
Your ask: Draft an email to gmagent_tester2@meta.com saying working on it and will keep you updated. thanks for your patience.

-------------------------
Calling Llama...

Llama returned: {'function_name': 'create_draft', 'parameters': {'action': 'new', 'to': 'jeffxtang@meta.com', 'subject': 'Update on [Your Project]', 'body': 'Hi Jeff,\\n\\nI wanted to touch base with you regarding [Your Project]. I am currently working on it and will keep you updated. Thank you for your patience.\\n\\nBest regards,'}}.
Llama returned: {'function_name': 'create_draft', 'parameters': {'action': 'new', 'to': 'gmagent_tester2@meta.com', 'subject': 'Update on [Your Project]', 'body': 'Hi Jeff,\\n\\nI wanted to touch base with you regarding [Your Project]. I am currently working on it and will keep you updated. Thank you for your patience.\\n\\nBest regards,'}}.

Calling tool to access Gmail API: create_draft, {'action': 'new', 'to': 'jeffxtang@meta.com', 'subject': 'Update on [Your Project]', 'body': 'Hi Jeff,\\n\\nI wanted to touch base with you regarding [Your Project]. I am currently working on it and will keep you updated. Thank you for your patience.\\n\\nBest regards,'}...
Calling tool to access Gmail API: create_draft, {'action': 'new', 'to': 'gmagent_tester2@meta.com', 'subject': 'Update on [Your Project]', 'body': 'Hi Jeff,\\n\\nI wanted to touch base with you regarding [Your Project]. I am currently working on it and will keep you updated. Thank you for your patience.\\n\\nBest regards,'}...
Draft created with ID: r5930232887125763038

Tool calling returned: r5930232887125763038
Expand Down Expand Up @@ -211,14 +211,14 @@ Tool calling returned: None

Gmagent: Email sent.

Your ask: forward the email to jeffxtang@meta.com
Your ask: forward the email to gmagent_tester2@meta.com

-------------------------
Calling Llama...

Llama returned: {'function_name': 'send_email', 'parameters': {'action': 'forward', 'to': 'jeffxtang@meta.com', 'subject': 'this is an interesting paper', 'body': '', 'email_id': '1936fce85e88a3ef'}}.
Llama returned: {'function_name': 'send_email', 'parameters': {'action': 'forward', 'to': 'gmagent_tester2@meta.com', 'subject': 'this is an interesting paper', 'body': '', 'email_id': '1936fce85e88a3ef'}}.

Calling tool to access Gmail API: send_email, {'action': 'forward', 'to': 'jeffxtang@meta.com', 'subject': 'this is an interesting paper', 'body': '', 'email_id': '1936fce85e88a3ef'}...
Calling tool to access Gmail API: send_email, {'action': 'forward', 'to': 'gmagent_tester2@meta.com', 'subject': 'this is an interesting paper', 'body': '', 'email_id': '1936fce85e88a3ef'}...
Message forwarded successfully! Message ID: 1936fdd039c68451

Tool calling returned: None
Expand Down

0 comments on commit a3aa840

Please sign in to comment.