Replies: 5 comments 30 replies
-
|
So what you want is; You don't need to modify the source. You can use postProcessing: (helper, responseObj) => {
helper.sendNotification('SHOW_ALERT', {
title: 'Response from OpenAI',
message: responseObj.response.choices[0].text
})
} |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
400 error usually happens on throwing wrong request data |
Beta Was this translation helpful? Give feedback.
-
|
I was using telegram bot chatai, any idea or workaround for this? |
Beta Was this translation helpful? Give feedback.
-
|
I found what was wrong from your log. Too long token (conversation) |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I know it already does show the output on the screen but I am trying to implement it to show a notification or alert using the default alert module by sending a SHOW_ALERT notification, I believe this can be achieved by sending a SHOW_ALERT notification from the nodehelper or the mainjs, I tried few different ways but I can’t seem to get it to work so I thought it’s best to reach out to you.
My objective is: To show Alert or notification of the response from the module, I tried updating the code in the following ways
And for the nodehelper I have added some console log and I could get it to print it on the console but the mainjs is not receiving the notification for some reason. Here is my nodehelper
I know it’s a little clumsy, not really sure what iam doing wrong here. Please help me out
Beta Was this translation helpful? Give feedback.
All reactions