How to watch a folder for a text file, summarize it with ChatGPT, and create a file in Google Drive Obsidian Vault?

This topic was automatically generated from Slack. You can find the original thread here.

Similar to the one above but for text instead of audio. Watch a folder for a text file, summarize it with ChatGPT, then create a file in a Google Drive Obsidian Vault.
Trigger: New file in a Google Drive folder

  1. Download file
  2. Bash script cat the file to `PIPEDREAM exports.
DATA=`cat /tmp/text.txt`

EXPORT="contents=${DATA}"
echo $EXPORT >> $PIPEDREAM_EXPORTS
  1. ChatGPT to summarize
  2. Create file from text in Google Drive

1 Like
Write a Title for the transcript that is under 15 words and contains no quotation marks

Then write: "---"

Write "Summary" as a Heading 2 (For example: ## Heading)

Write a summary of the provided transcript.

Then write: "---".

Then return a list of the main points in the provided transcript. Then return a list of action items. Then return a list of follow up questions. Then return a list of potential arguments against the transcript.

For each list, return a Heading 2 (For example: ## Heading) before writing the list items. Limit each list item to 100 words, and return no more than 5 points per list.

Transcript:
{{steps.code.contents}}

And:

Write a Title for the transcript that is under 5 words, containing no quotation marks or special characters

Transcript:
{{steps.chat.$return_value.original_messages_with_assistant_response[1].content}}

hi - I’m trying this but having issues with the ChatGPT step timing out despite set at 180s / 4gb memory, even testing with a very short text file. any ideas?

hmm, i’m not sure! Perhaps the API itself was having some issues?

I was trying to do the exact same thing.

  1. google drive trigger to watch for text file (success)
  2. download the file to tmp/ (success)
    3 use chat gpt to summarize ( pass with warning.)
    Upon closer inspection it looks like chat gpt is not looking at the contents of the file. just the file itself so it’s not summarizing anything. Do you think you have the same issue?