Retrieve Argument
How to Retrieve Arguments and Create Google Calendar Events through Copilot
-
Add Google Calendar Node
- Search for Google Calendar in the left panel and drag it into the workflow.
-
Configure Google Calendar
- Open the settings drawer for the Google Calendar node.
- Connect your Google account.
- Set the Operation to
Create Event
.
-
Define Event Details
-
Event Summary: The title or subject of the event provided by the user is dynamically referenced using.
Retrieves the
subject
value dynamically from the input provided to the Copilot Tool during the workflow execution. -
Event Description: Any additional details about the event, provided by the user, are dynamically referenced using:
Retrieves the
description
value dynamically from the input provided to the Copilot Tool during the workflow execution. -
Location: The venue for the event.
-
Attendees: Dynamically set the attendees using the parameter from the Copilot Tool:
Retrieves the email_id value dynamically from the input provided to the Copilot Tool during the workflow execution.
Understanding Payload
A
Payload
is like a "package" of information transferred through the workflow. It contains the necessary data or values required to perform a task. In Copilot workflows, payloads allow you to dynamically access and manipulate data using curly braces. These references enable the seamless transfer and utilization of information throughout the workflow.
Key Description payload
Represents the dataset being transferred within the workflow. copilotInputArgs
Contains the input arguments provided by the user through the Copilot Tool. -
Specify the Start Date and End Date for the event.
-
- Save and Test
-
Save the workflow and test it to ensure the event is created successfully in Google Calendar and click on publish.
-
-
Create an Event through Copilot Interface
-
Go to your Copilot interface and ask it to create an event.
-
When prompted, provide the Summary, Description, and Email ID for the event.
-
Once the inputs are provided, the workflow will process the details and schedule the event in Google Calendar.
-
Check your Google Calendar to verify if the event has been successfully scheduled.
-
You can select the version, view the execution history, and check the result and body for detailed insights.
-