Is it possible...

Is it possible to:

  • Display a variable (users last choice) as the title on a menu block (which lets them selects their next move)?
  • Display dynamic variables and have an option to return to a previous step if the present options are not appropriate?

Display dynamic variable - you can always add an additional “Other” entry into your JSON object (prompt the AI to do this). Then you can use a logic block to send user to a specific workflow path if selected option = other.

Is it possible to extract tasks with specific dates from a “display content” block and use the details to use/prefill the data needed to “create a calendar event”?

Absolutely!

  1. Before Display Content, save what you are about to display as a variable
  2. Display Content
  3. Use another Generate Text block with JSON output and create a structured variable with key calendar details such as title, description, start datetime, end datetime, etc. You will need to prompt the AI to convert datetimes to the specific format (YYYY-MM-DD etc.)
  4. Google Calendar block - refer to the specific JSON values (for example, {{get yourVar “$.startdate”}}) and populate the entire block

To add to Jerry’s clarification, here’s an example of how the setup might look:

A Generate Text block that extracts event details and outputs a JSON array:

Then, a Create Google Calendar Event block that pulls specific values from the JSON array:

Thanks Jerry, I’ll try this out :+1:

Thanks Alex for this example workflow! :+1:

1 Like

Hi Alex, i tried following the example flow you described, however, i got an error on the Create Calendar Event block

For your reference here is the screenshot of the original (which saves all document details) and new GenerateText block (which saves calendar related info)

Lastly, here is the screenshot of the summary document output showing the calendar info that must be included in the Create Calendar Event block.

How do i match the calendar info on the summary document to the JSON data needed by the Create Calendar Block?

Thanks in advance!

Hi @mylomindstudio,

Let’s go over the details:

  1. Your first Generate Text block saves data to the SummaryDocument variable, so in the second Generate Text block, make sure to reference it as {{SummaryDocument}} instead of [[data]]
  2. Make sure the JSON in the second Generate Text block is valid. It looks like it’s missing key-value pairs. Here’s our guide on working with JSON:
    Working with JSON | MindStudio University

Here’s a sample JSON structure you could use:

{
  "title": "meeting title",
  "description": "event description",
  "location": "link",
  "startTime": "time in ISO format",
  "endTime": "time in ISO format",
  "attendees": "email@email.com"
}
  1. Will each uploaded document contain everything needed to create the event, like start time, location, etc.? If not, think through how the Agent should handle missing details. You can either prefill some values in the Create Calendar Event block or add instructions to the prompt about what to do when something’s missing

Great! You can either add to the prompt to include those details under the description key in the JSON, or add another Generate Text block to extract those values and save them to a new variable. Then you can reference that variable in the Description field of the Create Calendar Event block.

Hope this helps!

Thanks Alex! I’ll try it and keep you posted :+1:

Is it possible to scrape all the posts in a social media page and not just what’s seen onscreen?

Hi @mylomindstudio,

This is possible, but it depends on the content that gets scraped from the social media page. Here’s how an Agent like this could work:

  1. Scrape all content from the page
  2. Use a Generate Text block or a Custom Function to extract all links into a JSON array
  3. Scrape each individual link

Thanks Alex! I’ll try that and keep you posted :+1: