aliattaran
aliattaran•10mo ago

Thread

No description
28 Replies
Gaurav Chadha
Gaurav Chadha•10mo ago
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.
No description
aliattaran
aliattaran•10mo ago
Thanks. what should the media url be? same as audio url?
Gaurav Chadha
Gaurav Chadha•10mo ago
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.
aliattaran
aliattaran•10mo ago
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
Gaurav Chadha
Gaurav Chadha•10mo ago
It could be due to cold start and Twilio's processing time, which plan are you on in BuidlShip?
aliattaran
aliattaran•10mo ago
the free plan
Gaurav Chadha
Gaurav Chadha•10mo ago
The no cold start is available from the pro plan - https://buildship.com/pricing.
aliattaran
aliattaran•10mo ago
do you have a node to input link or pdf to train a GPT model?
Gaurav Chadha
Gaurav Chadha•10mo ago
You can modify the get link from HTML node to get link.
aliattaran
aliattaran•10mo ago
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.
Gaurav Chadha
Gaurav Chadha•10mo ago
Yes, it is NodeJS code written in TS/JS.
aliattaran
aliattaran•9mo ago
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
Gaurav Chadha
Gaurav Chadha•9mo ago
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.
aliattaran
aliattaran•9mo ago
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" }
aliattaran
aliattaran•9mo ago
No description
aliattaran
aliattaran•9mo ago
not sure why it doesn't install those packages
aliattaran
aliattaran•9mo ago
also, it doen't show the log of this node. even after I ran it a few times. and the whole project
No description
aliattaran
aliattaran•9mo ago
I added several logging lines to see where is the error. but it doesn't show any of the logs
aliattaran
aliattaran•9mo ago
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.
aliattaran
aliattaran•9mo ago
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
No description
aliattaran
aliattaran•9mo ago
I don't have promptValue or toChatMesssages in the code. these are from openai libraries.
aliattaran
aliattaran•9mo ago
i fixed that issue too. now it gives this error.
No description
aliattaran
aliattaran•9mo ago
i fixed this too 🙂
aliattaran
aliattaran•9mo ago
now, it doesn't play the actual ai response and sends this audio to wp number
aliattaran
aliattaran•9mo ago
Hi, I replaced the twilio webhook node with another from templates, but it still gives an error.
No description
aliattaran
aliattaran•9mo ago
is this how i can text in buldship?
aliattaran
aliattaran•9mo ago
No description
Gaurav Chadha
Gaurav Chadha•9mo ago
Please remove the node and add it from the node explorer instead of the template and test the node individually.