Issue with Thomas Frank Code Heavy Speech to Notion - specifically the code block formattting the Transcript in Node via OpenAI API

Hi There,

Hoping this community can help here. First time user of pipedream and was following the written tutorial here:

I succesfully ran the trigger → download to temp → duration step → Connecting and transcribing via Open AI API but I ran into an issue with the Node Code block in the summarise transcript with Chat GPT

When I ran the Code block found in step ‘Summarise the Transcript with ChatGPT’ I ran into the error message in Pipedream that the ‘Configuration’ reference is not defined in OpenAi.

Steps I tried to take to troubleshoot:

  1. Use the Pipedream AI to update the Node code block for updated OpenAI references
  2. Started going down the rabbit hole of trying to source the current Open AI Library for its API through a GitHub Repository to then manually change the references myself (but this is all new to me)
  3. Pipedream community help where I saw another thread about this guide

Thanks for your help and @thomasfrank if you see this, great guide and appreciate your help on this one!

Cheers

Hi @davidcalder1703,

I apologize for the confusion you’re experiencing. It seems like you’re trying to use the OpenAI (ChatGPT) action to summarize the transcript. Instead of using a code step, you can use the built-in “Summarize Text” action provided by Pipedream. Here’s how to do it:

  1. In your workflow, remove the code step that’s causing the error.
  2. Click on the “+” button to add a new step.
  3. Search for the OpenAI (ChatGPT) app in the step menu.
  4. Select the “Summarize Text” action.
  5. Connect your OpenAI (ChatGPT) account.
  6. Pass the transcript text as input to the “Text” field, or use data from a previous step.
  7. Configure any optional props as needed.
  8. Click “Test” at the bottom of the step to test the action and its configuration.

This should help you summarize the transcript without any issues. If you still encounter any problems, please let me know or visit https://pipedream.com/support for more support options.
I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double check my answers and code! Learn how to build your own.

Just as a further note, I did want to firstly try troubleshoot the original Code block and not deviate from the Guide too much because the ultimate goal is to have this in the same markdown format with the same fields populated in a pre designed Notion Notes template

Hi,

OpenAI just released a new version for their npm package with a breaking change, and whenever we deploy a workflow we use the most recently published package. Would you mind going through your Node.js code steps and suffixing the package version like this:

import { Configuration, OpenAIApi } from "openai@3.3.0";

More info here: v3 to v4 Migration Guide

Thanks,

Hi, I am new to Pipedream, but I like what I am seeing.

I am putting my question here, to try to keep things together. If I need to create a new thread, please let me know.

Error

Failed to download file: getaddrinfo ENOTFOUND ud78r9s3t6c6s7afa545778b4100.dl.cloudstorageusercontent.com

DETAILS

    at Object.downloadToTmp (file:///tmp/__pdg__/dist/code/4cf355a52ab0f9c275ba953eea42492276c4b796f961fdffefa87942b1ced4df/code/Notion-Voice-Notes.mjs:316:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Object.run (file:///tmp/__pdg__/dist/code/4cf355a52ab0f9c275ba953eea42492276c4b796f961fdffefa87942b1ced4df/code/Notion-Voice-Notes.mjs:1885:5)
    at null.executeComponent (/var/task/launch_worker.js:242:22)
    at MessagePort.messageHandler (/var/task/launch_worker.js:748:28)

When running the TF workflow in Dropbox, I get the error above during testing. The Dropbox trigger event works, but then the workflow fails once I start running the ChatGPT API call. The code block seems to be locked or hidden, as I am only seeing the code block UI, and not the code. Where do I start addressing this?

1 Like

I face the same problem too. appreciate if there’s any help. thanks.

I face the same problem too. appreciate if there’s any help. thanks.

I have the same error: Error

I too am having the same issue and error. It was working fine at first, but has just started doing this in the past couple of months and I am not sure why. Any support with this would be greatly appreciated.
ud78r9s3t6c6s7afa545778b4100.dl.cloudstorageusercontent.com