{"id":336,"date":"2025-07-26T02:38:41","date_gmt":"2025-07-26T02:38:41","guid":{"rendered":"https:\/\/www.seasidecloudworks.net\/?p=336"},"modified":"2026-04-01T09:54:31","modified_gmt":"2026-04-01T09:54:31","slug":"chatgpt_agent","status":"publish","type":"post","link":"https:\/\/www.seasidecloudworks.net\/en\/chatgpt_agent\/","title":{"rendered":"ChatGPT Agent is here! Results and limitations of asking it to search for important emails in Gmail"},"content":{"rendered":"\n<p>ChatGPT has added an \u201cagent function\u201d that is now available with Plus ($20\/month), so I tried it out to organize my unread Gmail messages. I&#8217;ve seen demos that demonstrate \u201ccross-service operations\u201d such as \u201cordering lunch from Uber Eats,\u201d but this time I focused on the Gmail connector to see how much automatic organization it can do.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Agenda<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>What we did in this article (prerequisites)<\/li>\n\n\n\n<li>Preliminary preparation: Enable the Gmail connector<\/li>\n\n\n\n<li>Experiment 1: Are there any important emails that require a reply?<\/li>\n\n\n\n<li>Experiment 2: Can labels be automatically assigned to detected DMs?<\/li>\n\n\n\n<li>Experiment 3: Can DMs be automatically moved to the trash?<\/li>\n\n\n\n<li>What the Gmail connector can and cannot do<\/li>\n\n\n\n<li>Experiment 4: Count the number of emails by sender and month, and create tables and graphs<\/li>\n\n\n\n<li>Experiment 5: Can this be automatically executed on the 1st of every month and notified via email?<\/li>\n\n\n\n<li>Bonus: It provides instructions for the DM opt-out link (but the final click must be done manually)<\/li>\n\n\n\n<li>Things learned from using it and ideas for utilization<\/li>\n\n\n\n<li>Summary<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Preparation: Enable Gmail Connector<\/h2>\n\n\n\n<p>First, I sent the following prompt to the agent.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Prompt<\/strong><br>I want to extract emails that require a response from my unread emails in Gmail. I want to sort DMs.<\/p>\n<\/blockquote>\n\n\n\n<p>However, I encountered an error saying \u201cUnable to connect to Gmail.\u201d<br>So I connected Gmail from [Settings \u2192 Connectors] and tried again.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"691\" height=\"377\" src=\"https:\/\/www.seasidecloudworks.net\/wp-content\/uploads\/2025\/07\/agent1.png\" alt=\"\" class=\"wp-image-330\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Experiment 1: Are there any important emails that require a reply?<\/h2>\n\n\n\n<p>Set up the Gmail connector and try again. I will also let you know when the setup is complete with the following prompt.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Prompt<\/strong><br>We have configured your device to connect to Gmail. Please try again.<\/p>\n<\/blockquote>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"624\" height=\"527\" src=\"https:\/\/www.seasidecloudworks.net\/wp-content\/uploads\/2025\/07\/agent2.png\" alt=\"\" class=\"wp-image-331\"\/><\/figure>\n\n\n\n<p><strong>Result<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Important emails from people that require a reply: 0<\/li>\n\n\n\n<li>1 security notification from Google (no reply required)<\/li>\n\n\n\n<li>The rest are mostly direct messages (advertisements\/mail magazines).<\/li>\n<\/ul>\n\n\n\n<p>The agent&#8217;s actions appear to be live streaming, as shown in the figure above. As a result, the loneliness of not communicating with others via email is highlighted. Since I do not use Gmail for actual work, I concluded that this is understandable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Experiment 2: Can labels be automatically assigned to detected DM?<\/h2>\n\n\n\n<p>While understanding that Gmail also categorizes emails as promotions, I will experimentally try assigning labels. This is because assigning labels will make it easier to filter emails in Gmail.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Prompt<\/strong><br>Please set labels for the above DMs and detected emails. These will be used for filters in Gmail.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Result<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It was not possible.<\/li>\n\n\n\n<li><strong>The Gmail connector does not have a \u201clabel assignment\u201d function (i.e., the operation API is not provided)<\/strong>.<\/li>\n\n\n\n<li>As an alternative, it is possible to create your own filter on the Gmail side by \u201cproviding search conditions.\u201d<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Experiment 3: Can DM be automatically moved to the trash?<\/h2>\n\n\n\n<p>If you cannot add a label, try deleting it as junk mail.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Prompt<\/strong><br>Please move the DM detected above to the trash in Gmail.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Result<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This is also not possible. Similarly, the API for deletion and movement is not provided.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">What the Gmail Connector can and cannot do<\/h2>\n\n\n\n<p>I am currently trying out Gmail Connector rather than an agent, but I realized that I needed to know in advance what it could do, so I checked it out.<\/p>\n\n\n\n<p><strong>possible<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>search_emails: Search by criteria (unread, date range, from, subject, etc. Gmail search operators can be used)<\/li>\n\n\n\n<li>search_email_ids: Quickly retrieve email IDs only<\/li>\n\n\n\n<li>read_email: Retrieve the body and header of individual emails<\/li>\n<\/ul>\n\n\n\n<p><strong>impossible<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Labeling, marking as read, deleting, moving, replying, sending<\/li>\n\n\n\n<li>Automatic execution according to schedule (regular batches) and automatic notification of results via email<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Experiment 4: Count the number of cases by sender and month, and create tables and graphs.<\/h2>\n\n\n\n<p>If it supports the reference system API, we will try to see if we can display how many emails have been delivered in an easy-to-understand manner. We will count the number of emails sent per month by sender.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Prompt<\/strong><br>Can you count the number of emails received in Gmail by sender on a monthly basis and summarize them in a table and line graph?<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Result<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Compile the number of messages sent from each source into a table for May to July (the last three months).<\/li>\n\n\n\n<li>Visualize the increase or decrease with a line graph.<\/li>\n\n\n\n<li>In addition, it summarized the content of messages sent from each source, which was useful in deciding which sources to stop sending messages from.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"558\" height=\"367\" src=\"https:\/\/www.seasidecloudworks.net\/wp-content\/uploads\/2025\/07\/agent5.png\" alt=\"\" class=\"wp-image-332\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Experiment 5: Can you automatically run this on the 1st of every month and notify me by email?<\/h2>\n\n\n\n<p>If this works, it should make it easier to sort out unnecessary direct mail. I&#8217;ll ask if they can do this regularly every month.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Prompt<\/strong><br>Can you automatically perform this analysis on the 1st of every month and notify me of the results by email?<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Result<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>NG. ChatGPT (agent) alone cannot perform \u201cscheduling\u201d and \u201cemail sending.\u201d<\/li>\n\n\n\n<li>Alternative:\n<ul class=\"wp-block-list\">\n<li>Automate equivalent processing with Google Apps Script (GAS) + Gmail API.<\/li>\n\n\n\n<li>Or use automation tools such as Zapier\/Make.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Extra: They will provide you with a link to stop receiving DMs (but you have to click on it yourself).<\/h2>\n\n\n\n<p>Finally, if it could automatically stop streaming\u2026<\/p>\n\n\n\n<p>When I requested to stop receiving direct mail from a mall, they found the \u201cunsubscribe link\u201d in the email body and provided it to me.<br>However, the actual unsubscription process must be performed by the user themselves (external site screen transitions and login operations are not possible in this environment).<\/p>\n\n\n\n<p>However, this agent guided me to the site where I could stop distribution and even displayed the browser. For some reason, my email address was garbled, so I couldn&#8217;t actually stop distribution, but I thought it was quite helpful.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Things I learned from using it\/Ideas for utilization<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Positive points<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Extremely powerful for \u201creading\u201d tasks.Unread sorting, keyword monitoring, and notification extraction from accounts are quite practical.<\/li>\n\n\n\n<li>Visualize a large number of DMs at a glance by \u201csender \u00d7 month.\u201d It is easy to see at a glance where to stop for maximum effect.<\/li>\n\n\n\n<li>Output \u201ctotals &amp; graphs\u201d with just a prompt. Convenient for initial analysis.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Shortcomings (current limitations)<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Unable to perform operations on Gmail (labeling, deleting, replying, sending)<\/li>\n\n\n\n<li>Unable to perform scheduled execution and automatic notifications<br>\u2192 Must be combined with external workflows\/scripts<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">It seems like a good way to use it.<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Leave the \u201cvisualization\u201d part to ChatGPT.<br>\u2192 Set up Gmail filters and unsubscribe while viewing the results.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ChatGPT Agent + Gmail Connector is powerful for \u201csearching, summarizing, aggregating, and visualizing\u201d emails.<\/li>\n\n\n\n<li>However, it is currently unable to perform email \u201coperations (such as labeling and deleting) or automatic sending\/scheduled execution.\u201d<\/li>\n\n\n\n<li>It is sufficient for the purpose of \u201cfirst visualizing and then deciding where to stop.\u201d<\/li>\n\n\n\n<li>In the future, if operation-related APIs are released, it has great potential to become a \u201cpractical automation tool.\u201d<\/li>\n<\/ul>\n\n\n\n<p>I am still not fully proficient in using the agent, but I feel that it is possible to connect it with other services and request support. I look forward to its future development and would like to try out various features.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ChatGPT has added an \u201cagent function\u201d that is now available with Plus ($20\/month), so I tried it out to organize my unread Gmail messages. I&#8217;ve seen demos that demonstrate \u201ccross-service operations\u201d such as \u201cordering lunch from Uber Eats,\u201d but this <a class=\"more-link\" href=\"https:\/\/www.seasidecloudworks.net\/en\/chatgpt_agent\/\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":338,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"https:\/\/www.seasidecloudworks.net\/?p=328","footnotes":""},"categories":[2],"tags":[7,32],"class_list":["post-336","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","tag-chatgpt","tag-nofollow","en-US"],"_links":{"self":[{"href":"https:\/\/www.seasidecloudworks.net\/wp-json\/wp\/v2\/posts\/336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.seasidecloudworks.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.seasidecloudworks.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.seasidecloudworks.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.seasidecloudworks.net\/wp-json\/wp\/v2\/comments?post=336"}],"version-history":[{"count":2,"href":"https:\/\/www.seasidecloudworks.net\/wp-json\/wp\/v2\/posts\/336\/revisions"}],"predecessor-version":[{"id":340,"href":"https:\/\/www.seasidecloudworks.net\/wp-json\/wp\/v2\/posts\/336\/revisions\/340"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.seasidecloudworks.net\/wp-json\/wp\/v2\/media\/338"}],"wp:attachment":[{"href":"https:\/\/www.seasidecloudworks.net\/wp-json\/wp\/v2\/media?parent=336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.seasidecloudworks.net\/wp-json\/wp\/v2\/categories?post=336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.seasidecloudworks.net\/wp-json\/wp\/v2\/tags?post=336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}