28 Replies
Hi @aliattaran, did you tried using the media param to send the url? It should process. Additionally, The media should be supported by WhatsApp for preview check in order show in native file format. https://www.twilio.com/blog/whatsapp-media-support.
Thanks. what should the media url be? same as audio url?
Yes, but ensure that its compatibility with the media support from the above docs link. You can directly give a try with the same one.
yes, it worked. thanks so much
the next step is to be able to train the gpt model based on my link or pdf.
Right now, the sample openai node just has system prompt.
another question. why the messages are coming soooooo late
It could be due to cold start and Twilio's processing time, which plan are you on in BuidlShip?
the free plan
do you have a node to input link or pdf to train a GPT model?
You can modify the get link from HTML node to get link.
I don't know how to do that. I'll look for a developer. thanks
if you can do custom coding in the node, please let me know.
@Gaurav Chadha it's nodejs code, right? so I have to revise the nodejs code to add training based on pdf and links.
Yes, it is NodeJS code written in TS/JS.
HI @Gaurav Chadha I was trying to test the openai chat note to test the training based on url.
it would be great if we can debug the code by seeing the logs for each node. right now, the log is for the whole project
Yes, you can. If you switch the tab from workflow to node, you can see logs of individual node - https://docs.buildship.com/logging#viewing-the-cloud-logs.
Logging – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
Thanks. I need to install some packages in cmd. But not sure how to do it in node environment. This is the error:
{
"error": {
"nodeId": "test-node-d1f7c5b6-aa9b-43e0-aa59-d73fbdf59fe2",
"nodeName": "OpenAI Chat",
"stage": "installing dependencies",
"errorObject": {
"code": 1,
"killed": false,
"signal": null,
"cmd": "npm install require fs@0.0.2 path@0.12.7 axios@1.6.5 cheerio@1.0.0-rc.12 langchain-openai node-nlp"
}
},
"buildId": "1706369876680"
}
not sure why it doesn't install those packages
also, it doen't show the log of this node. even after I ran it a few times. and the whole project
I added several logging lines to see where is the error. but it doesn't show any of the logs
Logging – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
i fixed the package issue. it gives a more technical error now. it's related to langchain chat model. and I need to see the logs to be able to see what's happening
I don't have promptValue or toChatMesssages in the code. these are from openai libraries.
i fixed that issue too. now it gives this error.
i fixed this too 🙂
now, it doesn't play the actual ai response and sends this audio to wp number
Hi, I replaced the twilio webhook node with another from templates, but it still gives an error.
is this how i can text in buldship?
Please remove the node and add it from the node explorer instead of the template and test the node individually.