Skip to content

Examples and guides for using the OpenAI API

docs: update sales meeting prep for current workspace agents (#3195)

Dominik Kundel2d5b1a9b6e70
diff --git a/articles/chatgpt-agents-sales-meeting-prep.md b/articles/chatgpt-agents-sales-meeting-prep.md
index 3297edb9..2ebe6848 100644
--- a/articles/chatgpt-agents-sales-meeting-prep.md
+++ b/articles/chatgpt-agents-sales-meeting-prep.md
@@ -1,6 +1,6 @@
# Building workspace agents in ChatGPT to complete repeatable, end-to-end work
-This cookbook shows how to build a ChatGPT workspace agent. Currently available in research preview for ChatGPT Business, Enterprise, and Edu customers, workspace agents are evolutions of GPTs that can work across tools to complete high-value tasks, helping your team move faster.
+This cookbook shows how to build a ChatGPT workspace agent that prepares sales meeting briefs using your calendar and your team's customer documents.
In this cookbook, we'll create a workspace agent through the conversational builder, give it access to our team's calendars and knowledge bases, and add a brief-writing skill to help craft the agent's output. Then we'll test our team agent, schedule it to run on a recurring schedule, and share it with teammates.
@@ -10,26 +10,25 @@ ChatGPT workspace agents are shared agents that can run repeatable workflows acr
In this cookbook, we'll build a workspace agent that supports a sales team. Sales teams often spend time manually pulling account notes, recent customer feedback, product usage metrics, and company news to prepare for upcoming customer meetings.
-We'll build a workspace agent that helps our sales team more efficiently prepare for their sales meetings by automatically generating meeting briefs ahead of upcoming customer calls, backed by up-to-date customer data. Specifically, our agent will run each day to check tomorrow's customer meetings, gather recent account context from SharePoint, and search the web for recent company news and background information on each attendee. Our agent will generate a meeting brief, save it down as a SharePoint doc, and send us an executive summary.
-
-Once our agent is deployed, it will run automatically each day, and we can also invoke it on-demand in ChatGPT.
+We'll build a workspace agent that checks the next weekday's customer meetings, gathers recent account context from SharePoint, and searches the web for company news. We'll test it in ChatGPT, then set up a weekday schedule to prepare briefs. With the required app actions and approvals, it can save briefs in SharePoint and email a summary.
## Prerequisites and setup
-For this cookbook, you will need a ChatGPT Business, Enterprise, or Edu workspace with access to workspace agents, and a set of apps (connectors) that enable your agent to access your calendar and account information. We'll use Google Calendar and Microsoft SharePoint to show a workflow that uses both Google Workspace and Microsoft 365 apps, but you can switch out any supported apps. Our agent will send notifications in Slack, but you can also use email or another notification surface.
+For this cookbook, you will need a ChatGPT Business, Enterprise, or Edu workspace with access to workspace agents. Our agent will read upcoming meetings from Google Calendar, save meeting briefs in Microsoft SharePoint, and email a summary through Gmail.
+
+Before you build, confirm these three settings with your workspace admin.
-Before you build, ask your workspace admin to confirm four settings:
+1. **Workspace agents are available to you.** Confirm that you can open **Agents** and create an agent in your workspace.
+2. **You can share the agent with its connections.** This example uses an agent-owned SharePoint connection. Confirm that your workspace allows you to share an agent with that connection and, if you want to list it in the team directory, publish it there.
+3. **The apps and actions you need are available.** Check that the workspace allows calendar reads, SharePoint search and file creation, and Gmail sending. Connect accounts with the corresponding Google and Microsoft permissions. If your workspace restricts writes, the agent can return the brief in ChatGPT.
-1. **Agents are enabled for your workspace.** Workspace owners can enable agents for the workspace and assign access to specific roles with RBAC.
-2. **You have permission to build and share agents.** An admin will need to enable you (or the appropriate RBAC group) to create agents. If you plan to share the agent, an admin may also need to enable publishing.
-3. **The apps you need are enabled.** For this cookbook, an admin would need to enable Google Calendar, Gmail, and SharePoint in workspace app settings.
-4. **[optional] Slack is approved for the workspace.** Only required if you want to interact with your agent through Slack. Enterprise admins need to enable the "workspace agents for Slack" app and grant access to users or groups with RBAC. Your Slack workspace must also allow the ChatGPT Agents app for Slack.
+If you want to run a version of this agent from Slack, follow the [Workspace Agents in Slack setup instructions](https://help.openai.com/en/articles/20001143-chatgpt-workspace-agents-for-enterprise-and-business). A Slack deployment requires shared authentication for every app connection. This example runs in ChatGPT so each teammate can use their own calendar and email account.
## Building your agent
-The conversational agent builder is the fastest way to start. It can draft the agent profile, choose apps, generate a skill, write instructions, and prepare a draft agent that you can test in Preview. We'll use that flow here, then review each piece step by step so you can refine the agent later.
+Open **Agents** in ChatGPT and choose **Create** → **Create agent**. The conversational builder can draft the agent profile, choose apps, generate a skill, and write instructions. We'll review its choices before we test the agent in **Preview**.
-Note that if you want inspiration on work to automate, you can start from pre-built agent templates including a Chief of Staff, Data Analysis, and Customer Support agents.
+To start from an existing example, choose **Browse templates** from the **Create** menu instead.
<p align="center">
<img src="https://cdn.openai.com/cookbook/chatgpt-agents-sales-meeting-prep/img0.png" alt="Build a new agent" width="80%" />
@@ -40,30 +39,26 @@ Note that if you want inspiration on work to automate, you can start from pre-bu
We'll enter the following text into the agent builder:
```text
-Create an agent to help with sales meeting prep. The agent should check my Google Calendar for tomorrow's customer meetings. Exclude internal-only meetings and skip events with no external attendees.
+Create an agent to help with sales meeting prep. Check my Google Calendar for customer meetings on the next weekday. On Friday, prepare briefs for Monday. Exclude internal-only meetings and skip events with no external attendees.
-For each customer meeting, pull recent notes and feedback from SharePoint, then search the web for any relevant company news from the last 30 days. Then write a 2-3 page meeting brief. Save the meeting brief as a SharePoint doc.
+For each customer meeting, pull recent notes and feedback from SharePoint, then search the web for any relevant company news from the last 30 days. Then write a 2-3 page meeting brief. Save it as a file in the team's SharePoint folder.
Then, send me an email with a daily summary of my upcoming meetings, with a link to the full brief.
```
-You'll see the assistant create a plan for building the agent, then starting to build each component step-by-step. The first draft should give you a working agent with a name, description, instructions, and a set of connected apps.
+Review the plan, then select **Build this agent**. Check that the draft includes Google Calendar, SharePoint, and Gmail.
-<p align="center">
- <img src="https://cdn.openai.com/cookbook/chatgpt-agents-sales-meeting-prep/img1-v2.png" alt="Agent builder in progress" width="80%" />
-</p>
-
-If you don't have the required apps already configured, the agent builder will walk you through the configuration steps. If an app is unavailable, you can adjust scope - for example if you don't have Slack enabled, you can instruct your agent to send you an email with your sales meeting doc instead.
+If you don't have the required apps already configured, the agent builder will walk you through the configuration steps. If Gmail is unavailable, you can ask the agent to return the link to the SharePoint brief in ChatGPT.
### 2. Review and configure your apps
Now we'll review the configurations of our apps. Because our agent can access external tools, it's important to understand the permissions it has to take actions on these tools, and how those permissions change as we share our agent for other teammates to use.
-Note that connector actions can be enforced at the workspace level by admins. For example, an admin can enforce that workspace agents can only take read actions, but not write actions, for the SharePoint connector.
+Workspace admins control which app actions are available. For this example, the SharePoint app needs permission to search for customer documents and create meeting briefs. If your workspace limits SharePoint to read-only actions, have the agent return the brief in ChatGPT.
-We can click into each connector to view and change its permissions.
+We can click into each app to view and change its permissions.
-For the **Google Calendar** connection, we'll use *End-user account*. What this means is that each person who is using the agent will need to authenticate with their own google calendar, and the agent will access their individual meetings.
+For **Google Calendar**, use each person's own connection. Leave **Use for everyone** off, or choose **End-user account** if the builder shows account options. Each person who runs the agent in ChatGPT connects their own Google Calendar account so the agent can read their meetings.
<p align="center">
<img src="https://cdn.openai.com/cookbook/chatgpt-agents-sales-meeting-prep/img2.png" alt="End-user auth for Google Calendar" width="60%" />
@@ -75,17 +70,15 @@ For Google Calendar, we just need to view upcoming meetings and attendees, so we
<img src="https://cdn.openai.com/cookbook/chatgpt-agents-sales-meeting-prep/img3.png" alt="Read access for Google Calendar" width="60%" />
</p>
-We'll also use the same *End-user account* configuration for the **Gmail** connector, since each agent user will get their own email briefing for their upcoming meetings.
+For **Gmail**, use each person's own connection as well. During a ChatGPT run, the agent uses the Gmail connection of the person running it. To deliver the summary, it needs permission to send an email to that person.
-For the **Microsoft SharePoint** connection, we'll use an *Agent-owned account* linked to a service account associated with a sales team. What this means is that regardless of who is using the agent, the agent will have access to the full set of SharePoint folders, files, and sites that are accessible to the team service account.
+For **Microsoft SharePoint**, turn on **Use for everyone**, or choose **Agent-owned account** if the builder shows account options. Connect a sales team service account with access to the customer documents the agent needs and the folder where it will save briefs. The agent uses that same account for every run.
-In this case, we want to be able to search through SharePoint for any documents relevant to a customer account, then create a new meeting prep document. So we'll scope the SharePoint connector permissions accordingly, to allow a broad set of read actions but prevent bulk write actions and prevent deletes.
+Enable the SharePoint actions needed to find and read the source documents and create a brief in the destination folder. Confirm that the intended recipients can open files in that folder. Leave sharing, deletion, and unrelated write actions disabled.
-<p align="center">
- <img src="https://cdn.openai.com/cookbook/chatgpt-agents-sales-meeting-prep/img4.png" alt="Scoped permissions for SharePoint" width="60%" />
-</p>
+In each app's settings, review approvals separately from which actions are enabled. Workspace agents default to asking before write actions. In a test run, check what happens when the agent tries to create the file and send the email before relying on scheduled delivery.
-Aside from the connectors we've already enabled, the agent has access to **Web search** that it will use to enrich the meeting briefs with recent public company news from the last 30 days.
+Alongside these apps, the agent uses **Web search** to find public company news from the last 30 days.
### 3. Enabling skills and memories for consistent, customized outputs
@@ -97,7 +90,7 @@ Skills package instructions, resources, and scripts to help our agent reliably c
<img src="https://cdn.openai.com/cookbook/chatgpt-agents-sales-meeting-prep/img5.png" alt="Creating a skill for our agent" width="336" />
</p>
-Our assistant will read the meeting template and help us create a custom skill that matches the output format we want. To refine the skill, edit it directly in the agent builder or upload files it can use.
+If your team already uses a meeting brief template, upload it to the builder and ask the assistant to use its sections when creating the skill. To refine the skill, edit it in the agent builder or upload files it can use.
<p align="center">
<img src="https://cdn.openai.com/cookbook/chatgpt-agents-sales-meeting-prep/img6.png" alt="Editing a skill for our agent" width="60%" />
@@ -105,7 +98,7 @@ Our assistant will read the meeting template and help us create a custom skill t
We'll also enable **Memory** for our agent. Memory enables the agent to maintain context across different agent sessions, by giving it access to a persistent folder where the agent can save notes, drafts, and outputs. In this case, we'll give the agent memory for previous runs of this agent so it knows per-user context.
-Note that this memory is not shared across different end users of our agent. Users can view their memories from the agent page. For example, a user might give the agent guidance to ignore a certain meeting on its calendar that it doesn't need a meeting prep doc for, and the agent will be able to access that memory when following its instructions.
+In ChatGPT, the agent keeps a separate memory for each user. Teammates can view their own memories from the agent page. For example, ask the agent to remember which recurring meetings you want it to skip.
<p align="center">
<img src="https://cdn.openai.com/cookbook/chatgpt-agents-sales-meeting-prep/img7.png" alt="Giving our agent access to memory" width="60%" />
@@ -113,7 +106,7 @@ Note that this memory is not shared across different end users of our agent. Use
## Testing your agent
-Before scheduling our agent to run on a periodic cadence, and before sharing it with other teammates, we can select **Preview** or **Try in ChatGPT** in the top-right corner of the agent builder to test our agent. We can also select **Create** to save our agent, and then invoke it by tagging it in our ChatGPT input box. Note that when you first create an agent, it is by default available only to you.
+Select **Preview** in the builder and test the agent with your own accounts before sharing it. Select **Create** to publish the agent when you're ready. If you later change the draft, select **Update** to publish the new version.
Note that our agent builder has automatically created some sample starter prompts that appear next to the agent in ChatGPT. To view and edit these prompts, we can select ChatGPT under "Channels" in the agent view.
@@ -121,9 +114,9 @@ Note that our agent builder has automatically created some sample starter prompt
<img src="https://cdn.openai.com/cookbook/chatgpt-agents-sales-meeting-prep/img9.png" alt="Updating starter prompts" width="336" />
</p>
-We'll ask our agent to prepare briefs for the meetings on our calendar for tomorrow, and we can view the traces of actions the agent is taking - accessing connectors, referencing skills and memories - as well as the agent's chain-of-thought reasoning as it completes its task.
+We'll ask our agent to prepare briefs for the next weekday's meetings. In the run, we can review the app actions it takes, such as reading calendar events and saving a brief in SharePoint.
-When our agent completes, we see that it has generated polished SharePoint documents for each of our upcoming customer meetings and sent us an email summary.
+Verify that the expected files exist, the email arrived, and its links open for the recipient. The screenshots below illustrate an email and brief from a separate run for same-day meetings.
<p align="center">
<img src="https://cdn.openai.com/cookbook/chatgpt-agents-sales-meeting-prep/img11.png" alt="Output email" width="80%" />
@@ -133,22 +126,22 @@ When our agent completes, we see that it has generated polished SharePoint docum
<img src="https://cdn.openai.com/cookbook/chatgpt-agents-sales-meeting-prep/img12.png" alt="Output meeting brief" width="80%" />
</p>
-You can run additional tests with different input data - for example, you might ask the agent to prepare a brief for a meeting that you already had last week, to compare its output with a human-generated prep doc. You can also add that prep doc to the skill's files as an example. You can update agent instructions, provide it additional connectors and permissions, or update its skill to refine the output it produces.
+You can run additional tests with different input data - for example, you might ask the agent to prepare a brief for a meeting that you already had last week, to compare its output with a human-generated prep doc. You can also add that prep doc to the skill's files as an example. You can update the agent's instructions, configure its apps and permissions, or update its skill to refine the output it produces.
## Deploying your agent
-We'll first set our agent to run each day at 4pm, to give us a preview of the upcoming day. We'll select **Schedule** in the top-right of the agent screen and then **Add new schedule** to specify when the agent should run, and provide it any specific instructions.
+Open the published agent in ChatGPT and select **Automations**. Choose the ChatGPT channel and set the schedule to weekdays at 4 p.m. Eastern. Enter the instructions for the next weekday's meetings and select **Add automation**. The schedule runs the published version as the person who created the schedule. Check the first run for any approvals or failed actions before relying on the email.
-For example, in addition to our daily weekday schedule, we might want to create a "weekly prep" schedule that runs each Sunday evening, and instruct our agent to prepare meeting briefs for each upcoming meeting this week.
+The image below shows the same weekday settings in an earlier version of the schedule editor. For a weekly brief instead, choose Sunday evening and ask the agent to cover the coming week.
<p align="center">
- <img src="https://cdn.openai.com/cookbook/chatgpt-agents-sales-meeting-prep/img10.png" alt="Creating a schedule" width="336" />
+ <img src="https://cdn.openai.com/cookbook/chatgpt-agents-sales-meeting-prep/img10.png" alt="Weekdays at 4 p.m. Eastern in an earlier version of the schedule editor" width="336" />
</p>
-Now, we'll share our agent with our team. In the "Channels" section of the agent builder, we can select **ChatGPT** and then **Enable sharing**. (Note that your workspace admin will need to grant you permission to share agents you've created.)
+To share the agent, open it in the builder and select **Share**. Your workspace admin controls whether you can share agents.
-We can turn on sharing to generate a shareable link for our agent, which lets anyone in your workspace either chat directly with your agent, or duplicate your agent to create their own forked version which they can edit individually. (You won't be able to access their duplicated agent, unless they choose to share it with you. Currently, multiple users cannot edit the same agent.)
+Invite sales teammates with **Can chat** so they can run the agent. To let a teammate maintain it with you, grant **Can edit**. Editors can update the shared draft and publish new versions. Eligible managed workspaces can also grant access to a workspace group. A teammate with permission to build agents can duplicate the agent to make a separate version. See the [workspace agent sharing guide](https://help.openai.com/en/articles/20001143-chatgpt-workspace-agents-for-enterprise-and-business).
-Because we've selected *End-user account* for our Google Calendar and Gmail connectors, each person using our agent will need to log into these apps, and the agent will be able to access their specific meetings and email. However, because we've selected *Agent-owned account* for the SharePoint connector, **anyone we share the agent with will be able to access the SharePoint resources**.
+To get recurring personal briefs, each teammate connects their own Google Calendar and Gmail accounts and creates their own ChatGPT schedule. **Anyone who can run the agent can also use its enabled SharePoint actions through the sales team service account.** Before sharing, check which content the service account can access and which SharePoint actions the agent can take.
-In addition to providing our teammates with a link to our agent, we can also choose to list our agent in our company directory, allowing anyone in your workspace to view the agent. You can access your company directory of employee-built agents by selecting **Agents** from ChatGPT, and then selecting the agent directory tab.
+If your workspace allows directory publishing, you can also list the agent for workspace members who have access to agents. They can find it in **Agents** under **Team directory**.