![Farthink AI](/img/default-banner.jpg)
- 51
- 53 785
Farthink AI
United States
เข้าร่วมเมื่อ 5 พ.ย. 2023
AI is transforming the world-don't get left behind. Everyone deserves access to powerful AI solutions at minimal cost and with maximum simplicity. On this channel, I'll share my insights to help you save both time and money. Let’s elevate both your personal and professional life together!
Build a Powerful Chatbot with DeepSeek AI (Better than GPT!) using Voiceflow n8n (FREE Open-Source)
Tired of costly AI chatbot solutions? In this video, we demonstrate how to create a high-performance chatbot using Voiceflow, DeepSeek AI (R1 - surpassing ChatGPT), and the open-source workflow automation tool, n8n.
Why n8n?
• Free & Open-Source: No vendor lock-in, self-host for ultimate control and unlimited usage at no cost.
• Fast & User-Friendly: Intuitive UI for both coders and non-coders.
• Powerful & Flexible: Easily connect to various APIs and services.
In this tutorial, you'll learn:
• How to set up a self-hosted n8n workflow.
• How to integrate DeepSeek AI (via ollama) with n8n.
• How to connect n8n to your Voiceflow chatbot.
• How to handle user input and receive AI-powered responses.
Experience the power of DeepSeek AI, a cutting-edge open-source model exceeding the capabilities of ChatGPT, within your own custom chatbot.
Keywords:
• Voiceflow
• n8n
• DeepSeek AI
• ChatGPT
• Open-Source
• Self-Hosting
• Free Chatbot
• AI Chatbot
• Workflow Automation
• Ollama
• Build Your Own Chatbot
• DIY Chatbot
• No-Code
• Low-Code
Why n8n?
• Free & Open-Source: No vendor lock-in, self-host for ultimate control and unlimited usage at no cost.
• Fast & User-Friendly: Intuitive UI for both coders and non-coders.
• Powerful & Flexible: Easily connect to various APIs and services.
In this tutorial, you'll learn:
• How to set up a self-hosted n8n workflow.
• How to integrate DeepSeek AI (via ollama) with n8n.
• How to connect n8n to your Voiceflow chatbot.
• How to handle user input and receive AI-powered responses.
Experience the power of DeepSeek AI, a cutting-edge open-source model exceeding the capabilities of ChatGPT, within your own custom chatbot.
Keywords:
• Voiceflow
• n8n
• DeepSeek AI
• ChatGPT
• Open-Source
• Self-Hosting
• Free Chatbot
• AI Chatbot
• Workflow Automation
• Ollama
• Build Your Own Chatbot
• DIY Chatbot
• No-Code
• Low-Code
มุมมอง: 359
วีดีโอ
Stop using Make in your Voiceflow chatbot! Use Open-Source n8n to automate lead gen for FREE
มุมมอง 24214 วันที่ผ่านมา
Tired of manual lead capture for your Voiceflow chatbot? This video shows you how to automate lead generation with the powerful and FREE workflow automation tool n8n and Airtable. Why n8n? • Self-hosting: Run n8n locally or on your own server for unlimited use at NO COST. • Open-source: Full control over your workflows and data. • Fast & Flexible: Blazing-fast UI and built-in JS editor for powe...
Voiceflow Chatbot: Build Product Recommendation with Cursor AI in MINUTES! (No Coding Required)
มุมมอง 235หลายเดือนก่อน
Tired of coding? This video shows you how to revolutionize your Voiceflow chatbot with Cursor AI, a powerful AI coding assistant. Learn how to: • Effortlessly build a product recommendation system within your Voiceflow chatbot. • Generate code in SECONDS to fetch product data from Airtable using a custom function. • Display eye-catching product carousels to your users with a seamless user exper...
Build a Voiceflow Lead Gen Bot in 60 SECONDS with Cursor AI! (No Coding Needed)
มุมมอง 224หลายเดือนก่อน
Tired of slow coding? 🤯 This video shows you how to revolutionize your Voiceflow bot development with the power of Cursor AI. In just 60 seconds, we'll guide you through creating a high-converting lead generation bot using Cursor AI. Watch and learn how to: • Generate a custom form to capture user name, email, and phone number effortlessly. • Integrate seamlessly with Google Sheets to store and...
How to use Cursor AI to build any Voiceflow extensions
มุมมอง 281หลายเดือนก่อน
In this video, we'll show you how to harness the power of Cursor AI to generate high-quality code for your Voiceflow projects in just minutes. Even if you have no coding experience, you can follow along and create amazing extensions. This video shows hot to simply provide a clear prompt to Cursor AI, and watch as it effortlessly generates the code for you. Experienced developers can also benefi...
Mistral: The New King of Free AI Models! Build Agents and Interact with Them Via API Calls
มุมมอง 5662 หลายเดือนก่อน
Mistral new release is here, and it's packed with new features that make it the most powerful free AI model available today. In this video, we'll demo the new Fully Free Chat Platform with Coding Canvas / Artifacts Capabilities along with Web Search and Image Generation Capabilities. We'll also show you how to build Mistral agents and interact with them via API calls. Finally, we'll demo how to...
Revolutionize Real-Time Chatbot Interactions with Voiceflow's Streaming API
มุมมอง 3442 หลายเดือนก่อน
Unlock the Power of Real-Time Chatbots with Voiceflow's Streaming API! In this comprehensive tutorial, we'll guide you through the process of building a cutting-edge AI chatbot that leverages Voiceflow's Streaming API to deliver lightning-fast, interactive experiences. Key Benefits: • Reduced Latency: Experience significantly lower response times, keeping your users engaged and satisfied. • Enh...
Build Your Own Chatbot with Elon Musk's X AI Grok API: A Step-by-Step Guide
มุมมอง 8272 หลายเดือนก่อน
Ever dreamed of creating your own AI chatbot? Now you can with Elon Musk's Grok API! In this video, we'll guide you through a step-by-step process to build your own personalized chatbot. Key Features: • Easy-to-follow tutorial: No technical expertise required! • Leverage the power of Grok API: Access advanced AI capabilities. • Customize your chatbot: Tailor it to your specific needs and prefer...
Build Your Own AI Chatbot with Voiceflow Dialog API
มุมมอง 4542 หลายเดือนก่อน
Learn how to create powerful AI chatbots using the Voiceflow Dialog API! In this step-by-step tutorial, we'll guide you through the process of building a chatbot platform that allows you to switch between multiple chatbots with a simple click. Key Features: • Gemini API Integration: Leverage the power of Gemini API to build advanced AI-powered chatbots. • Voiceflow Dialog API: Seamlessly connec...
Build a Voiceflow Chatbot for Appointment Booking (No Calendly or Google Calendar!)
มุมมอง 7513 หลายเดือนก่อน
Learn how to create a powerful appointment booking chatbot using Voiceflow. In this step-by-step tutorial, we'll guide you through the process of writing code and building a chatbot that allows users to easily book appointments using a Full Calendar. Key features you'll learn to implement: • Dynamic Calendar Integration: Visually select dates and times for appointments. • Intelligent Booking: A...
Fetch Data from Make Webhook to Voiceflow Chatbot: A Step-by-Step Guide
มุมมอง 9953 หลายเดือนก่อน
Learn how to connect your Voiceflow chatbot to a Make webhook and retrieve data from Make. In this tutorial, we'll guide you through the process of setting up a Make webhook and fetching data from it directly into your Voiceflow chatbot. This powerful technique allows you to leverage the capabilities of both platforms to create more dynamic and interactive conversational experiences. Key topics...
How to Embed a Voiceflow Chatbot with Extensions to a WordPress Website(Even with Incompatible Theme
มุมมอง 2444 หลายเดือนก่อน
Learn how to seamlessly integrate a Voiceflow chatbot with extensions into your WordPress website. This tutorial provides a step-by-step guide, even if your WordPress theme is not compatible with JavaScript extensions. Discover how to overcome common challenges and ensure a smooth chatbot embedding process. Key topics covered: • Adding extensions for enhanced functionality • Embedding the chatb...
Upload Table Data Directly to Knowledge Base Using Function Block: A Step-by-Step Guide
มุมมอง 3364 หลายเดือนก่อน
Learn how to create a powerful chatbot that directly interacts with your table data without relying on external databases. In this comprehensive tutorial, we'll guide you through the process of building a demo chatbot and writing a reusable function block to upload table data directly to your knowledge base. You'll learn how to: • Create a function block: Define and structure the function block...
How to Upload Files to the Knowledge Base in Your Voiceflow Chatbot for Customized Chat
มุมมอง 5855 หลายเดือนก่อน
Want to take your Voiceflow chatbot to the next level? Learn how to empower your users to upload files directly to your knowledge base for personalized chat experiences. In this step-by-step tutorial, we'll guide you through creating a custom action block and writing an extension function to enable file uploads. Key Topics Covered: • Setting up a custom action block in Voiceflow • Writing an ex...
How to Build a Dynamic Product Recommendation Carousel in Voiceflow Using Airtable Data
มุมมอง 1.6K5 หลายเดือนก่อน
Learn how to create an engaging and informative chatbot experience by fetching product data directly from Airtable and displaying it in a dynamic carousel within Voiceflow. This step-by-step tutorial covers everything from writing a custom function to make API calls to structuring your Airtable base for optimal data retrieval. Discover how to enhance user engagement and provide valuable product...
Supercharge Your Voiceflow Chatbot with Meta Llama 3.1 405B: Most Capable AI Model
มุมมอง 4376 หลายเดือนก่อน
Supercharge Your Voiceflow Chatbot with Meta Llama 3.1 405B: Most Capable AI Model
Revolutionize Data Entry: Extract Data from Images to Google Sheets with Voiceflow and Gemini(FREE!)
มุมมอง 4266 หลายเดือนก่อน
Revolutionize Data Entry: Extract Data from Images to Google Sheets with Voiceflow and Gemini(FREE!)
Chat with Your Data! Upload CSV & Power Voiceflow with Gemini 1.5 Flash (Personal & Business Use!)
มุมมอง 7467 หลายเดือนก่อน
Chat with Your Data! Upload CSV & Power Voiceflow with Gemini 1.5 Flash (Personal & Business Use!)
Supercharge Your Reading with AI & Chatbot! Boost Efficiency & Comprehension (Easy Demo)
มุมมอง 2167 หลายเดือนก่อน
Supercharge Your Reading with AI & Chatbot! Boost Efficiency & Comprehension (Easy Demo)
Real time chat with websites and uploaded files in Voiceflow
มุมมอง 3357 หลายเดือนก่อน
Real time chat with websites and uploaded files in Voiceflow
Supercharge Your Voiceflow Chatbot with Live Web Content
มุมมอง 2247 หลายเดือนก่อน
Supercharge Your Voiceflow Chatbot with Live Web Content
Supercharge Your Chatbot! Voiceflow KB + Mistral Large AI = Unbeatable Answers
มุมมอง 2828 หลายเดือนก่อน
Supercharge Your Chatbot! Voiceflow KB Mistral Large AI = Unbeatable Answers
Level Up Your Voiceflow Chatbot: Custom CSS Style for Better User Experience-Self Hosted Stylesheet
มุมมอง 1.1K8 หลายเดือนก่อน
Level Up Your Voiceflow Chatbot: Custom CSS Style for Better User Experience-Self Hosted Stylesheet
Add File Upload to Your Voiceflow Chatbot! (Photos, Docs, & More!)
มุมมอง 2.6K8 หลายเดือนก่อน
Add File Upload to Your Voiceflow Chatbot! (Photos, Docs, & More!)
Supercharge Your Chatbot! Voiceflow KB + Gemini 1.5 Pro for Optimized Answers (Context-Aware!)
มุมมอง 3878 หลายเดือนก่อน
Supercharge Your Chatbot! Voiceflow KB Gemini 1.5 Pro for Optimized Answers (Context-Aware!)
Level Up Your Chatbot! Voiceflow KB + Llama 3 for Supercharged Answers (Conversation History)
มุมมอง 5349 หลายเดือนก่อน
Level Up Your Chatbot! Voiceflow KB Llama 3 for Supercharged Answers (Conversation History)
Dive into the Future of AI: Building Your Own Voiceflow Assistant with Llama 3!
มุมมอง 4419 หลายเดือนก่อน
Dive into the Future of AI: Building Your Own Voiceflow Assistant with Llama 3!
Level Up Your Voiceflow Chatbot: Display Images, Audio & Video!
มุมมอง 2K9 หลายเดือนก่อน
Level Up Your Voiceflow Chatbot: Display Images, Audio & Video!
Unleash the Power of Gemini 1.5 Pro with Voiceflow (NO CODE!)
มุมมอง 7419 หลายเดือนก่อน
Unleash the Power of Gemini 1.5 Pro with Voiceflow (NO CODE!)
Voiceflow chatbot: integration with website, proactive message, automatic popup & form extension
มุมมอง 2.1K9 หลายเดือนก่อน
Voiceflow chatbot: integration with website, proactive message, automatic popup & form extension
Also can I forward the photo through a make scenario that sends a text message?
Yes, the image can be sent in Base64 string.
what is it you done the code on pycharm? Not entirely sure.
No, not pycharm. It is JavaScript.
@@FarthinkAI Is webstorm best thing to download?
Hi, thanks so much for sharing such valuable information in your videos! It looks like there’s an update in n8n that now gives us direct access to DeepSeek and OpenRouter when selecting the model🎉
Thanks. Good to see the update. It looks like it needs API key to use it. In this video, we do not need the API key, and it is completely free.😀
How does the host of the website receive the images uploaded? Is it possible to accept pdf files only? Can we simply copy the code you presented?
You may save it in a database for long term storage. In the input element, add accept=".pdf" attribute to accept pdf only. You can copy the code to use it in your chatbot.
You may save it in a database for long term storage. In the input element, add accept=".pdf" attribute to accept pdf only. You can copy the code to use it in your chatbot.
Is it possible to use AI to recommed a certain product based on the user's conversarion and only display that one product?
Yes. AI can do that.
Hey, another question! The function works when I test it in the function edit environment (which is a big milestone for me), but when I go to my workflow and test i am getting Error: error encountered in function step invalid object received. Thanks
Make sure you have passed the correct personal token key and Airtale key.
Hey I have another question if we used an API block instead of the function block to export data from voiceflow to airtable, how to set it up?
You may watch this video: th-cam.com/video/_ppqwDna5f4/w-d-xo.html, showing how to use an API block to connect with Airtable. The method may change to POST.
hey, thanks for this. I am just typing this out but i am not sure how you got the null or not an object the symbol? at 4:03 it's 3 lines stacked ontop of one another with a diagonal to the right.
If you type !==, it will automatically come out.
@@FarthinkAI thanks
Please make a vid regarding cost optimalization within voiceflow.
Yes, will consider that.
hey amazing tutorial just one little thing: the code works but when i click buy products it says path not connected in voiceflow
You may check if the "buy product" button has the correct URL or it leads to other intents as desired.
Thanks for this! But do you know how I can build it into a more precise system that recommends products based on the category of the product that the user prefers?
After fetching the data from Airtable, you may select the products in the user preferred category to display in the dynamic carousel. This can be implemented with the help of AI or with a specific function.
@@FarthinkAI oh this sounds like a good idea, hope u can make a vid about it
hello! to where do i copy that script ?
github.com/voiceflow-gallagan/vf-extensions-demo/blob/c7a5eda8116dc915f0b85cf9014baeefe92a22c5/extensions.js
@@FarthinkAI sorry, i mean where do i copy that script to in voiceflow ? in which block ?
@@yessayan82 You can use a custom action block to implement the extension. The script needs to be in a different file and imported with the embed snippet.
Very nice video! It would be great if you could create a tutorial where you integrate the Stripe embedded form into the chat widget, so users can pay directly in the chat without having to be redirected to another page. I would love to see it...
Yes. Will make a video on this.
@@FarthinkAI Thank you very much!
Thank you for the video! This helped me create a dynamic carousel, but now I'm facing this issue: whenever a "Buy product" button is clicked, button label "Buy product" is sent as a message by user. I want to continue with another question and buttons, asking what they want to do next and giving options, such as re-writing their inputs or giving feedback. I am not able to do this, because once they click "Buy product button", the buttons I am displaying next are disappearing. How did you continue your flow after the dynamic carousel step, what would you recommend? Thanks a lot in advance!
Use the button code: buttons: [{ name: 'Buy Product', payload: { actions: [ {type: "open_url", url: PaymentLink} ] } }] To move to the next step, you can connect the function block with a message block to ask the user what they want to do next, and with choices or buttons to provide options.
The furthest I could get was a success message in voice-flow but then nothing showed up when I clicked on the traces arrow. I made an air table with the same columns to link everything. Stumped
The data is not fetched. Make sure the column names are capitalized at the first letter.
@@FarthinkAI Thank you for your channel and sharing your advanced technical skill with the voice flow community. My column names have capitals and i have been trying to get the code right. However, i feel a bit exhausted. Been at this for an hour now and a few days before that. Before I bought a template to make the dynamic card process easier but then air-table did some sort of update so that template didn't work. Something seems to always mess up. The code is different every time from content creators. I keep running things through chatgpt to fix and tried to copy that code you used from cursor ai but got error messages. Us beginners would gladly just pay you if you can make a process simple enough that a little kid or an old person could follow and get constant results. All the dynamic voice flow card tutorials seem like they are unstable to ppl new to javascript and voice flow functions. Sorry if i sound mean it's probably an issue with voice-flow as other platforms seem like they can implement this functionality easier but I just really like some of the demos they showed with dynamic cards and i really want to pull it off to look cool if possible, haha.
Sorry to hear that. I can feel your frustration. Cursor should work well at this case if we give it a good prompt with confined and explicit instructions. I think the prompt used in this video can accomplish this with the code patterns stored in the docs which Cursor can follow. The purpose of this video is to let users with no coding experience utilize Cursor to write code. If you follow along the video, Cursor should generate the code as shown in the video. Please make sure to follow the steps and use the prompt in the video. If possible, you may send the Cursor code to me and I will take a look.
@@FarthinkAI Wow, thank you so much! I will give it another go sometime next week and send you an email with the Cursor code, air-table screenshots, prompts, etc so you can tell/show me what I'm doing wrong 😅. Thank you again for being amazing!
Great video! Everything works well, but button is not clickable. Do you have any idea what can be wrong?
You may check if the button is "open_url" type. If not, ask Cursor to fix it. It is an easy job for Cursor. 😀
prompts used in this video: Please follow the instruction here: @VF functions to write code to fetch the data from airtable, and save the records in the products array. Please include this information when making the API calls: "const tableID ="your Airtable ID"; const AirtableKey = "your Airtable token"; const url = "api.airtable.com/v0/" + tableID;" Please follow the carousel example code here: @Voiceflow trace types to Generate carousel items from the products. Map the Name, Content and Image attributes of product to "title", "description.text" and "imageUrl", respectively, and create buttons with name of "Buy Product" and "open_url" type with the url of product's attribute: "PaymentLink", then, save them to the "carouselItems" variable. Finally, Return an object of trace array containing an object with type and payload.cards of the generated carouselItems. Make sure to follow the carousel pattern.
Thank you for your great training videos! Could you please provide a link to the tips for Cursor AI.
********************* prompts Please follow the instruction here: @VF functions to write code to fetch the data from airtable, and save the records in the products array. Please include this information when making the API calls: "const tableID ="your Airtable ID"; const AirtableKey = "your Airtable token"; const url = "api.airtable.com/v0/" + tableID;" Please follow the carousel example code here: @Voiceflow trace types to Generate carousel items from the products. Map the Name, Content and Image attributes of product to "title", "description.text" and "imageUrl", respectively, and create buttons with name of "Buy Product" and "open_url" type with the url of product's attribute: "PaymentLink", then, save them to the "carouselItems" variable. Finally, Return an object of trace array containing an object with type and payload.cards of the generated carouselItems. Make sure to follow the carousel pattern.
Very helpful,keep going,this channel is great
Thank you!
What i dont get is that the video also shows without using the set block and variable 6:35 what is the need of doing that ?
Voiceflow works like that. We are just following their rules.
For embedding TH-cam videos is it enough to just use the text block or must we use the set block and create a variable for it to work?
Yes, the url needs to be passed in a variable instead of a string. So a set block or javascript block is necessary.
@ If my use case involves static video responses that are already predefined and linked to specific questions or categories, do I still need to use a Set Block or variables to embed the video URLs, or can I simply use the Text Block with the direct embed URL?
You may watch this video: th-cam.com/video/8fi65X4zRNs/w-d-xo.html
how do we cancel, reschedule or confirm if we had an appointment then?
It can be easily implemented by adding the reschedule and cancel buttons, and you may update the events in the KB with the specific user.
@@FarthinkAI Another question, what benefit does this have over the use of google calendar/calendly? Thanks for the quick response by the way
I don't understand API url? Please can you tell me about this.
You may learn API from this webpage: docs.voiceflow.com/reference/api-overview
Great video, i need help building a employee Training Bot how can i contact you?
You can find the email address in the "About" of this channel, and contact us. Please let me know if you have further question.
@@FarthinkAII didn’t find it
You are the bets
Thank you! 😊
exactly what i was looking for - thanks!
Thank you!
Thanks for the video!!!
Thank you!
would you have the github? I have no coding experience so I am kind of lost :( thanks for sharing your content!
Your tutorials are the best! Keep going you are helping a lot of us!!
Thank you very much!😀
Which part should I skip if I just want the streaming part? Thanks
Not sure what you mean. It is all related. The first part showing the Voiceflow bot on the canvas. The second part is writing the code. If you want to skip the first part, you may go to the code part.
@@FarthinkAI I mean how to do the streaming coding part if I don't need the AI bot and employee Bot like your video?
How do you price chatbox solution to youre customers?
This is an important topic, and we have a plan to make a video on it.
It's a good tutorial. But I have always wondered if people really read a fast streaming text as is being generated?
Usually Voiceflow generates the entire answer and displays it to the user, resulting that the user has to wait for a while to see it. It is better to have a ChatGPT style streaming because it can avoid an awkward silence especially if the answer is lengthy.
Hey this is really great . it is exactly what i looking for. is it possible disable the input area when i am showing the button. Please answer and thanks for this video.
Yes. Use this code to disable the input: // Get the input element by its ID const inputElement = document.getElementById("text"); // Disable the input field inputElement.disabled = true;
@@FarthinkAI Thank you. does the voiceflow api work without upgrading the free trial? because i try the same as you show in this video but it doesn't working. So please answer this so i know what exactly happening .
@@shajibbarua-y7t It should work for the free version.
hey it's really helpful. can you make a video how to disable the input section when we show the button and also connect a human in live for chat when user asked.
Use this code to disable the input: // Get the input element by its ID const inputElement = document.getElementById("text"); // Disable the input field inputElement.disabled = true;
Awesome, you're doing great! is it possible to "disable the user input" when showing the "button" option.
Use this code to disable the input: // Get the input element by its ID const inputElement = document.getElementById("text"); // Disable the input field inputElement.disabled = true;
Your tutorials are top notch. Thanks for sharing!
Thank you so much!
Good work! It would be awesome if you could add minimize/close buttons in future video to close the communication with the voiceflow dialog API.
Yea, will think about that.
can you add a link to the code you write afterward so that we can just copy and paste it? thankyou
Yes. Will set up a link.
Click here to get the template: forms.gle/8E7xfqccKvVPQxnr9
can we apply this to messenger?
Yes.
this is useful
Thank you!
@@FarthinkAI can you add a link to the code you write afterward so that we can just copy and paste it? thankyou
OK, will set up a link.
@@thatonepoorguy5880 Please click this to get the template: forms.gle/8E7xfqccKvVPQxnr9
@@FarthinkAI awesome - i just sent you a request for the template
Hi, can I have the function template please?
Yes. Please send a request to the channel email.
Hi, can I have this function template please?
Yes. Please send a request to the channel email.
Hi, Great job !I have requested the template through the link you provided and i haven't received the project @Farthink AI
Sent.
This is a great channel
Thank you!
@FarthinkAI i really mean it,i learnt alot of things from this channel,hope you hit 100k as soon as possible
@@rogermelton3554 I am so glad to heart that the channel helps. Appreciate it!👍
Is there a way to do this on a Wix site?
Yes. Please check out this: www.voiceflow.com/articles/wix-chat
Great Video! I saw the comments, but I cannot find the email in order to get the amazing code. Thanks in advanced!!
If you use a computer, you can find it. Please let me know if you have further question.
Tried the video one didn't work for me:(
Can you specify what problem you have? Just a reminder, for a video, it is better to use an extension. If it is a TH-cam video, is a good option.
@@FarthinkAI The audio and video part Voiceflow updated some of their features especially the set block it's not like yours in the video.
@@alawsbramwell5175 In the set block, you may set the url in the variable, select the "value" radio button, and enter the URL of the audio/video in the box.
Love your tutorials! Amazing work!!
Thanks so much!
Is there a way to implement this on Whatsapp?
Yes, I think so, because you can embed the VF chatbot on Whatsapp.
Hi, thank you for the video! Do you know if it's possible to create a dynamic button path using the new custom action with JavaScript code?
Yes. You may use this code: const buttonsToShow = [ ] product_variants.forEach((variant) => { buttonsToShow.push( { name: variant.title , request: { type: "variant_selected", payload: { price : variant.price } } }) }) buttonsToShowDynamicaly = JSON.stringify({"buttons": buttonsToShow});
@@FarthinkAI Thank you so much.
@@FarthinkAI I use this function: export default async function main(args) { const product_variants = [ { title: "T-Shirt - Blue - Size M", price: 19.99 }, { title: "T-Shirt - Blue - Size L", price: 19.99 }, { title: "T-Shirt - Red - Size M", price: 18.99 } ]; const buttonsToShow = []; product_variants.forEach((variant) => { buttonsToShow.push({ name: variant.title, request: { type: "variant_selected", payload: { price: variant.price } } }); }); return { trace: [ { type: "choice", payload: { buttons: buttonsToShow } } ] }; } It work well, but i dont know how can i product_variants as input for this function. Thank you
what about the other method? - when we set up an API block in voiceflow to send data to make and receive it back. There's an option 'capture response' don't know what to put in the 'key' I know it'll be same 'body' in make but not sure about format. Great job with this btw!
If you want to send the data from Voiceflow to Make, you may watch this video: th-cam.com/video/B9QjEnyc358/w-d-xo.html If you want to do both, you may set the Make webhook module with both "GET" and "POST", so that it is possible to fetch and send data.
Would like to know about this method too