Outstanding video series!! Very well done. Great tonality and depth of instruction. I'd love to see future series discuss how results from intermittent steps can be saved to a document database or something similar.
Thank you! Great tutorial! Output parsers indeed play a crucial role in ensuring data consistency. Your clear explanations make it easy to grasp the fundamentals. Looking forward to more advanced scenarios in the series!
For everyone who is getting the error: "Error: Invalid JSON in the IfElse's Input Variables: SyntaxError: Expected ',' or '}' after property value in JSON at position" it's supposed to being fixed in the next releases. Meanwhile you can change a couple of things in order to make it work. Remove the Output Parser in the first LLM Chain (sentiment) and change the Prompt as follows: Determine if the following review is positive. Return "positive" or "negative" only options: {review} Then in the IfElse function, change the if logic to: if ($sentiment == "positive") { return true; } It should work. Good luck! BTW, great playlist, I really enjoy how Leon incorporates concepts step by step. Great work!!
@@leonvanzyl I'm getting the follwing error when I try to run the ifElse function: nodeInstance.run is not a function I have tried the suggestion from @DamianGarciaARG but I still have the same error. Please help!!! CC: @DamianCarciaARG
I am loving this entire playlist, thank you! Just wow - and again, loving how you don't make any assumptions into the viewers expertise, every little step. Masterclass in Flowise, but a masterclass in how to put together a software tutorial. Amazing 😍
great tutorial, nevertheless will look 2 times to get it all. and yes, absolut powerful: parser and condition elements, thats what we are looking for !!!
I'm not, BUT, I will be releasing a full course on UA-cam for FREE next week. It's going to be a a few hours long and contains pretty much everything I would teach in a paid course. Should release on Monday actually.
Great tutorial series, many thanks!! Following your instructions for the output parser, I was wondering whether it's possible to chain chat prompt templates. The idea is that the first prompt template would start a conversation by asking the user several questions and then pass the responses in a predefined format to another prompt template. This second template would then continue the conversation, using the input from the first prompt template as context.
Thanks for your video, it gives more ideas and opens up new perspectives :) I'm struggling with one thing, and maybe you can create a video about it: Is there any node that can take the Agent's output as an input to continue the treatment?
I am so grateful for having this playlist. That's so awesome. Unfortunately, I ran into a problem while watching your 2023 tutorial. I can't make the bot upload my files. It says "I am not sure" all the time. I would be extremely thankful if you could help me.
Hi Leon, great content as always, I was revisiting this video and wondered how this may be used using with Agents are you planning any such use cases in the future, would love to learn more tips and tricks around FW, as always love learning the content from you channel.
Hey Manie! Output parsers are usually meant to be used with chains, not agents. I think it's due to the conversational nature of agents. Hmm.. unless you manage to call and agent from a chain somehow and then parse the output. I'll give this some thought and create a video. Do you have a use-case for this?
@leonvanzyl At 2:36 when adding the Output Parser, i don't get a JSON output. I think that's leading to the errors others are reporting in previous comments. Before adding the Parser, I'm getting a good true/false answer. After, I get a parsing error. My best guess is that something changed after this video was made. Structured Output Parser has no documentation as of June 6th, 2024. The LangChain construct doesn't have an underlying boolean type. So again, I'm guessing something changed.
@@leonvanzyl There aren't enough hours in a day. I've been aware of LlamaIndex for quite a while and wanted to test it out in a RAG system but never have the time to devote to it. I'm particularly interested in LlamaIndex's document processing (upsert / process multiple doc types) within RAG when compared to LangChain. Thanks for this excellent video on Output Parsers and IfElse function ... this is awesome. I can thinking of a million uses for this.
Hey Leon! I checked if everything is identical yours and I'm getting this error in Output Parser (Sentiment Analysis): Error: Invalid JSON in the IfElse's Input Variables: SyntaxError: Expected ',' or '}' after property value in JSON at position 15 (line 1 column 16)
Is that at 2:36 when adding the Output Parser? Same. @leonvanzyl Before the Parser, I'm getting a good true/false answer. After, I get a parsing error. My best guess is that something changed after this video was made. Structured Output Parser has no documentation as of June 6th, 2024. The LangChain construct doesn't have an underlying boolean type. So again, I'm guessing something changed.
same error i got. I dont know why, did u resolved it ? Error: Invalid JSON in the IfElse's Input Variables: SyntaxError: Expected ',' or '}' after property value in JSON at position 15
I'm going through this exercise with Llama3 and I find it useful to be specific about the output to avoid bad data. For example: "Provide a comma separated list of synonyms for the word: {word}. Do not add any other text or explanations or descriptions or interactions of any type. Do not describe the list or tell the user what the list is. Simply provide the synonyms and nothing else." Otherwise I would get a list like this: ["here is a list of synonyms for the word 'dog'," "canine", "pooch", .... "anything else I can help you with?"]
Amazing videos, you're helping a lot of people like me to get into the rabbit hole. Loving it, thank you! Let's say I want to integrate a feedback mechanism at the end of the conversation? How could we integrate this into the end of a conversation? I guess I can use the IfElse like if they want to give feedback it goes to the next chain which could be a positive negative chain. Thanks again, keep rocking!
Thank you for the feedback! Glad you're enjoying this 😁. For feedback, I assume you are referring to something that we saw in traditional chatbots / customer support where you rate the conversation at the end? You don't really have something similar in the AI world. There are a few ways that you could do this, but it mostly involves Dev outside of Flowise. OR we could implement a custom tool. When the user says something like "I would like to leave feedback" or "let's end the conversation" then the agent could go into a special process to collect this information and then store the results in a database. We will cover custom tools in this series. Reach out to my agency and we could assist you as well.
Brilliant series. One question can I pass on the original message as well? My use case would be a support bot what is either have to fetch solutions from a db or documents but there are certain situations where I don't want the bot to try to solve the issue. In certain urgent cases. So I would have to differentiate but also pass on the original user message to the right bot.
Amazing talk as usual Leon. I wonder if you can have a tutorial about multi tenancy in flowise, meaning that a single flow can serve multiple customers, but just control the customer id providing override config vars. Thanks and again really love your sessions, can't wait to see what's next ❤
I only discovered how powerful Flowise is! And you are my go-to resource, Leon! Looking forward to the next videos! Meanwhile I have a question: Is it possible to use Flowise in a similar way to AutoGen? I mean that you give a feedback to the partial results of an AI Assistant, then improve the output, and only then move to the next assistant (with a different role). Do you know what I mean? An equivalent to AutoGen's terminate=ALWAYS
Thank you for the feedback! AutoGen is intended to build collaborative agent solutions, which Flowise is not. I might be mistaken on this and will definitely look into it.
Hello leon I have followed the same but i have got this error I don't know why ....Error: Invalid JSON in the IfElse's Input Variables: SyntaxError: Expected ',' or '}' after property value in JSON at position 15
Very useful video. One question how can u connect the output for example of the multiple chains (Tutorial 3) to the input of this, for creating for example a survey depending of the result?
Great Series! I love this tutorial. I have few question. I want to design a flow with local installed deepseek-r1 model. I want that when customer said Hello or hi or any greet chat-bot response with good greeting. But when customer ask directly a question it response with greeting + answer. For example if customer provide his account number to know the balance, I want to search database of that account number if exist i inform him the balance. How could I achieve this in flow. Please give me idea. By the way deepseek-r1 reply with so many sentence even for Hi, Hello
You can only attach output parsers to LLM chains unfortunately. You could split your solution into 2 flows and orchestrate the logic with something like n8n or Make.com. Step 1. Call the Tool Agent and get response Step 2. Pass the agent response to an LLM chain with an output parser.
Dude, Langflow is great as well. Planning a Langflow series as well. There was a time when Flowise was far ahead in terms of production-readiness, but apparently the gap is closing.
Amazing video, Thanks for making this video Leon. I was wondering if you could help answer a question I had - The IfElse works well for 2 scenarios, but what about when I have more than 2 scenarios. Think of a list of like 5 options that a variable can take, and then there are 5 different prompts that get acted upon based on the variable's value. Is that something that the IfElse Function can do, or if there's some other way to go around it.
Hey there. You can add as many ifthen nodes as you want to the flow. Since we're passing a JSON object into the node (as in this video) you could pass in multiple properties. You can then check those values and call the next ifthen in the chain. I'm not a 100% sure what your scenario is, but there is probably an optimal way to solve it. Unless if you're trying to build an old school chatbot that drives the conversation down different paths. In that instance you should or use Botpress or Voiceflow.
@@leonvanzyl Thanks for the reply. I am trying to build a bot that has these 2 steps 1. Understand what the user wants to do 2. Route to an appropriate Chain/Agent that takes it forward I was thinking of using the IfElse node for the first part & then routing to an appropriate chain. However it seems that one IfElse node can only have 2 outputs. If I want to add more, I'll have to add multiple IfElse nodes. Is there a better way to be doing this?
Hi Leon, thank you to share your knowledge with us. Is it possible to include my survey with pre-defined questions , and then get the sentiment and customer answer using parsers ?
Absolutely. That's actually an easy implementation using a conversation chain. Provide the list of questions in the prompt and tell the model to ask the user each of these questions and once all answers are collected, provide a sentiment.
Stellar tutorials so far! Could you clarify a small thing please? In the 2 positive/negative Prompt Templates we set a placeholder {review}, however this parameter is not filled in by anything since by default they're mapped to empty string and we dont map them to an input variable like we did in other cases. I assume it works because it remembers the review from context, but how would you pass the review to the Prompt Templates after the if/else node?
Hi Leon, is there a select case utilities instead of true or false? My use case is getting openai to determine what area of question eg Complaints, Products info, Sales enquiry, etc and then redirect to different chain based on the question.
Hi Leon, I wonder if flowise may parse a response to an image/video same as you did for JSON snippet. Assuming the response coming from the LLM contains img/video src is there a way to show ? Thanks
Hello León first thanks for your efffort on this amazing videos. I have two questions 1- there is way to chat with local files like a code project if yes it can write in local files ? 2- there is a way to chat with a documentation of a website? Thanks you much
You're welcome 🤗. For points 1 and 2, you can chat with local files and web pages using RAG. Check out my video on RAG chstbots. As for writing files, you can use an agent with tools.
hey friend is it possible use this structure together with the Conversational retriever tool? wheres the agent only requesting this structure when need some validation? very good idea if possible could you create a video about it please?
🤔Is there a reason you're using separate LLM model nodes for the 2 chains, even though they use the same model with the same settings? I wonder about it also when I use Pinecone or the OpenAI Embeddings nodes in multiple places in the flow.
Using different models for different purposes is what Langchain and Flowise is all about. There's really no science behind it, but my advice to you is to use the cheapest model for each step in the process.
Hi Leon! really Thank you for your Helpful videos, I have a question on Flowise AutoGPT. How we can connect Multi AutoGPT Agents together! Assuming we have 3 or more Agents and each has different responsibilities.
When the if-else section, which we entered as "sentiment", is changed to "review", the result does not change. Where did this "sentiment" we wrote come from?
Your videos are the best ones! Flowise should reward you haha! This topic is probably one of the most important and it has been explained perfectly. I see that the "output parser" node works only with the LLM Chain node. However the LLM Chain doesn't allow the "document" Node. The Chains that allow documents (i.e pdf are the Conversational). But conversational chain doesn't have the "output parser" option. Do you know how to combine both? In order to combine output parsers, but also Documents uploads?
@@leonvanzyl first, thanks for your answer! But I cannot do that (or I think that). The output generated by these chains is not like the output from the LLM Chain (that can be an 'output prediction'). For Conversation Chains the output is "chain". Do I need to transform that?
how would you create a chain where: 1. Use search (serp) to get a list of urls for a company 2. Use structured output parse to return a list of urls. I can't find out how to link the response from search to a structured output. Otherwise I'll need to create 2 flows, one for search and send the results to output parser.
We'll have a look at website embedding in this series. I do have an older video on that topic on my channel, but in the new video I'll include a bit more information about customizing the chat window.
Hi @Leon , thank you for another great Tutorial. When i try to fetch the data from pinecone and the error appears that the apikey is wrong? I've already changed it several times. Any solution?
Hey there! Are you in the latest version of Flowise? I know they changed that node and credentials recently to accommodate for Pinecone Serverless. Other than that, no idea.
Great video series, but I wonder if another LLM than ChatGPT could be used. Like HuggingFace/Chat the LLama or Mixtral model. How can one create such a chat?
Of course you can. Flowise includes integration with my different models and providers. OpenAI offers some advance features that we'll look at soon (and is by far the most Common models used in industry). We'll have a look at using Open source models in this series for completeness sake 👍
how do i integrate this flow along with my pinecone database so that when the parser goes through the logic it will only out very specific texts i ask it to output?
Hi there, I encountered the "nodeInstance.run is not a function" error, which I discovered was due to an attempt to optimize the workflow. In an effort to minimize nodes, I initially used a single OllamaNode connected to three LLM Chains, deviating from Leon's tutorial where he explicitly used one ChatOpenAI node for each LLMChain. It appears that Flowise doesn't support this type of shortcut. The solution was straightforward: I added the two missing ChatOllama nodes (one for each LLMChain), and the workflow now functions perfectly. If you're experiencing a similar issue, you might have been trying to economize on ChatOllama nodes as I did. On a related note, I'm using the Phi3.5:3.8-mini-instruct-q4_k_m model, which runs smoothly on my local hardware.
Lol, not sure how its output parsers related 😁. If you used option 2 or 3 to set up Flowise, you access the .env file in the Flowise folder under components/server.
How would you compare Flowise to something like Autogen 2.0. In my mind they are alternatives, different roads to get to the same place, but am I missing something?
@@leonvanzyl Thanks for the reply! Yes I did, I only see Get Variable, Set Variable, and Sticky Note. I'm hoping to find the IfElse or something comparable to it so I can do what you're doing in the video
I have a question/challenge. I want to interview a user to gather a list of information about the user. How to I create a “loop” that keeps interviewing the user until all info is provided before continuing in a process?
I get you. The best solution that I found was to use the Assistants API. I have a video on this and really easy to implement. For example, if you want to collect information about a lead, the assistant will keep asking until all information is collected.
Leon, I'd love to get your input about this. What could be the main challenge in creating an assistant inside flowise that 'Know and understand everything about the platform'. This AI assistant can suggest flows, components, tools, etc inside flowise based on any use case the user wants. Then take this assistant further to actually automate the creation of these flows. Please give me the main challenging points. I tried to create a custom assistant on chatgpt, but it's too stupid. it doesn't understand that AI assistants can return JSON responses and call functions. Their inability to understand this part alone makes creating AI-powered apps through Flowise or even coding in general, a difficult task because their suggestions are outdated.
That's a very good idea. I'd also love to see more applications embed Chatbots into the UI in order to provide guidance and assistants. These are technical to implement and you'll need to understand coding. It's definitely outside the scope of Flowise.
Let's scratch the automation part out. What would be the main challenge here to create a coding assistant chatbot that is fully aware of flowise project, every single feature it has and how they work, and is able to suggest the flows required for the given use-case and can tell you 'Which nodes to connect with other in order to achieve what you want' What do you think about using this use case in your next Flowise 2024 series as an example for creating chatbots/assistants? This way everyone will actually understand better and also they get to create their own assistant for flowise that will help them in whatever they want. @@leonvanzyl
When will you add a hints feature, right in the chat window, like in gpt, so that the user can select a hint and follow it. This can be used to create a chat menu. For example, About Company, Our Services, or Products, Questions/Answers, Contacts. Without this feature, your bot lags behind the leaders of the chat market, of which there are now two, you know who I mean.
Love the idea. I'm not the creator of Flowise, so can't tell you if they plan on introducing such a feature, but it might be an idea to create a PR on their GitHub repo.
i am using pdf document upload and i asked unrelated questions to that document it will showing the ans to restrict that what we want to do pls suggesst one video for that related.
Hi, I wanted to buy you a coffee, is it possible to add PayPal to the payment options? I don't have access to visa and the other payment options. I think many would also prefer to have PayPal option.
Hi bro, how long does it usually take to get an email back on your cognitative AI platform? love your videos but need some help with a project ASAP. Thank you !!
@leonvanzyl May be was an ifElse parser problem, not in Output Parser. I exclude the Output Paser an use use the prompt --- You are an expert JSON coder Determine if the following review is positive: {review} Answer only in perfect JSON codifcation --- That gave me perfect answer in JSON format, and I feed the fiElse block with it and still have the Error: SyntaxError: Unexpected token '{' Please check and fix it. Thanks in advance
I'm having the same error. I think it might have to do with the way "Input Variables" dialog formats the JSON object so that the IfElse (or any of the other utilities for that matter) doesn't know how to parse it. I saw there was a bugfix merged into the 1.8.1 release, but that's the release I'm using and the bug is still there.
Example: We have a Knowledge base with some documents say the flowise documentation from their website + transcripts of all your videos on flowise. When a user asks a query, the user should get answer + the relevant video link of your playlist + 2-3 follow-up questions to guide the user what to ask next. If this o/p can be structured using an o/p parser then it will be easy to render in the chat window. @@leonvanzyl
I am loving this!! Really enjoy that you are making it more relevant to a business context, not just nonsensee AI hype. Thank you
Thank you!
Outstanding video series!! Very well done. Great tonality and depth of instruction. I'd love to see future series discuss how results from intermittent steps can be saved to a document database or something similar.
Thank you for the feedback and suggestion 🙏
Thanks for this series Leon, very useful!!
Hi Esteve, thank you for the support ❤️.
@@leonvanzyl I think your videos are awesome, you are helping many people like me.
Thank you! Great tutorial! Output parsers indeed play a crucial role in ensuring data consistency. Your clear explanations make it easy to grasp the fundamentals. Looking forward to more advanced scenarios in the series!
So glad you agree 👍. No idea why they get overlooked in tutorials.
For everyone who is getting the error:
"Error: Invalid JSON in the IfElse's Input Variables: SyntaxError: Expected ',' or '}' after property value in JSON at position" it's supposed to being fixed in the next releases. Meanwhile you can change a couple of things in order to make it work.
Remove the Output Parser in the first LLM Chain (sentiment) and change the Prompt as follows:
Determine if the following review is positive. Return "positive" or "negative" only options: {review}
Then in the IfElse function, change the if logic to:
if ($sentiment == "positive") {
return true;
}
It should work. Good luck!
BTW, great playlist, I really enjoy how Leon incorporates concepts step by step. Great work!!
Thank you for this!
@@leonvanzyl I'm getting the follwing error when I try to run the ifElse function: nodeInstance.run is not a function
I have tried the suggestion from @DamianGarciaARG but I still have the same error. Please help!!!
CC: @DamianCarciaARG
I am loving this entire playlist, thank you! Just wow - and again, loving how you don't make any assumptions into the viewers expertise, every little step. Masterclass in Flowise, but a masterclass in how to put together a software tutorial. Amazing 😍
Amazing comment. Thank you 🙏
What a fantastic Leon!!! Amazing talk, amazing information, amazing tool
Thank you 🙏
This series is super useful Leon, thank you so much mate for giving all this value for free 🙌🏽
You're welcome 🤗
this is the most usefull feature of LLM's in general. This needs to be explored more and in detail with unique usecases.
Agreed!
@@leonvanzyl Can it be compared to Open AI's "function calling"?
Very informative. I've learned a lot from it. Congratulations Leon!
Glad you enjoy the series. New videos launching SOON!
This is exactly what i was looking for! Very exciting
You're welcome 🤗
Oh wow , just when I thought the content couldn't get any better - you did it again !!! anyway , now to go and practice the new skills 😃
Thank you!
Thank you, sir. That is exactly what I am looking for.
You're welcome 🤗
great tutorial, nevertheless will look 2 times to get it all. and yes, absolut powerful: parser and condition elements, thats what we are looking for !!!
Thank you!
Thank you, I was expecting for it :) thanks for your work
Perfect timing then 😁.
Are you on any learning plattfrom like udemy etc. You are an amazing teacher - i have learned so much from your videos with such a clearity. Thank you
I'm not, BUT, I will be releasing a full course on UA-cam for FREE next week. It's going to be a a few hours long and contains pretty much everything I would teach in a paid course.
Should release on Monday actually.
Great tutorial series, many thanks!! Following your instructions for the output parser, I was wondering whether it's possible to chain chat prompt templates. The idea is that the first prompt template would start a conversation by asking the user several questions and then pass the responses in a predefined format to another prompt template. This second template would then continue the conversation, using the input from the first prompt template as context.
Thanks for your video, it gives more ideas and opens up new perspectives :) I'm struggling with one thing, and maybe you can create a video about it: Is there any node that can take the Agent's output as an input to continue the treatment?
Thank you for the comment!
The previous video was about prompt chaining. Wouldn't that work for you?
Another great video. Super informative.. thank you
You're welcome 😁
I get this error Error: Invalid JSON in the IfElse's Input Variables: SyntaxError: Expected ',' or '}' after property value in JSON at position 11
Error: Invalid JSON in the IfElse's Input Variables: SyntaxError: Expected ',' or '}' after property value in JSON at position 17
I am so grateful for having this playlist. That's so awesome. Unfortunately, I ran into a problem while watching your 2023 tutorial. I can't make the bot upload my files. It says "I am not sure" all the time. I would be extremely thankful if you could help me.
Check out the RAG video in the 2024 series. Flowise changed the way you upsert data to the vector store.
Hi Leon, great content as always, I was revisiting this video and wondered how this may be used using with Agents are you planning any such use cases in the future, would love to learn more tips and tricks around FW, as always love learning the content from you channel.
Hey Manie!
Output parsers are usually meant to be used with chains, not agents. I think it's due to the conversational nature of agents.
Hmm.. unless you manage to call and agent from a chain somehow and then parse the output.
I'll give this some thought and create a video. Do you have a use-case for this?
@leonvanzyl At 2:36 when adding the Output Parser, i don't get a JSON output. I think that's leading to the errors others are reporting in previous comments.
Before adding the Parser, I'm getting a good true/false answer. After, I get a parsing error.
My best guess is that something changed after this video was made. Structured Output Parser has no documentation as of June 6th, 2024. The LangChain construct doesn't have an underlying boolean type. So again, I'm guessing something changed.
Having the same issue - have put in a request for help on the flowise discord
Thanks Leon, this is great. Now that LlamaIndex has been integrated with Flowise I can imagine you have a whole new list of video ideas?
My head is spinning! Anything you would like to see me cover?
@@leonvanzyl There aren't enough hours in a day. I've been aware of LlamaIndex for quite a while and wanted to test it out in a RAG system but never have the time to devote to it. I'm particularly interested in LlamaIndex's document processing (upsert / process multiple doc types) within RAG when compared to LangChain. Thanks for this excellent video on Output Parsers and IfElse function ... this is awesome. I can thinking of a million uses for this.
Hey Leon! I checked if everything is identical yours and I'm getting this error in Output Parser (Sentiment Analysis):
Error: Invalid JSON in the IfElse's Input Variables: SyntaxError: Expected ',' or '}' after property value in JSON at position 15 (line 1 column 16)
I'm getting the same error. Have u fixed it?
@@_ZighiZago Not yet.
@@lucasbastianik were you able to solve it ?
Is that at 2:36 when adding the Output Parser? Same.
@leonvanzyl Before the Parser, I'm getting a good true/false answer. After, I get a parsing error.
My best guess is that something changed after this video was made. Structured Output Parser has no documentation as of June 6th, 2024. The LangChain construct doesn't have an underlying boolean type. So again, I'm guessing something changed.
Anyone know why this happens?:
Error: Invalid JSON in the IfElse's Input Variables: SyntaxError: Unexpected token { in JSON at position 15
same error i got. I dont know why, did u resolved it ? Error: Invalid JSON in the IfElse's Input Variables: SyntaxError: Expected ',' or '}' after property value in JSON at position 15
did anyone resolve it?
Same here
Same here
same here
I'm going through this exercise with Llama3 and I find it useful to be specific about the output to avoid bad data. For example:
"Provide a comma separated list of synonyms for the word: {word}. Do not add any other text or explanations or descriptions or interactions of any type. Do not describe the list or tell the user what the list is. Simply provide the synonyms and nothing else."
Otherwise I would get a list like this: ["here is a list of synonyms for the word 'dog'," "canine", "pooch", .... "anything else I can help you with?"]
That's what the output Parser is supposed to add to the prompt.
How can I use output parsers with a Conversation Chain ? I want to determine if a user wants to quit the conversation and redirect to another chain.
Amazing videos, you're helping a lot of people like me to get into the rabbit hole. Loving it, thank you! Let's say I want to integrate a feedback mechanism at the end of the conversation? How could we integrate this into the end of a conversation? I guess I can use the IfElse like if they want to give feedback it goes to the next chain which could be a positive negative chain.
Thanks again, keep rocking!
Thank you for the feedback! Glad you're enjoying this 😁.
For feedback, I assume you are referring to something that we saw in traditional chatbots / customer support where you rate the conversation at the end?
You don't really have something similar in the AI world.
There are a few ways that you could do this, but it mostly involves Dev outside of Flowise.
OR we could implement a custom tool. When the user says something like "I would like to leave feedback" or "let's end the conversation" then the agent could go into a special process to collect this information and then store the results in a database. We will cover custom tools in this series.
Reach out to my agency and we could assist you as well.
@@leonvanzyl Great stuff! Thank you!
Thank you soooooo much for doing this series
You're welcome 🤗
Brilliant series. One question can I pass on the original message as well? My use case would be a support bot what is either have to fetch solutions from a db or documents but there are certain situations where I don't want the bot to try to solve the issue. In certain urgent cases. So I would have to differentiate but also pass on the original user message to the right bot.
Amazing talk as usual Leon.
I wonder if you can have a tutorial about multi tenancy in flowise, meaning that a single flow can serve multiple customers, but just control the customer id providing override config vars.
Thanks and again really love your sessions, can't wait to see what's next ❤
Excellent idea for a tutorial, thank you 🙏
I only discovered how powerful Flowise is! And you are my go-to resource, Leon! Looking forward to the next videos!
Meanwhile I have a question: Is it possible to use Flowise in a similar way to AutoGen? I mean that you give a feedback to the partial results of an AI Assistant, then improve the output, and only then move to the next assistant (with a different role).
Do you know what I mean? An equivalent to AutoGen's terminate=ALWAYS
Thank you for the feedback!
AutoGen is intended to build collaborative agent solutions, which Flowise is not. I might be mistaken on this and will definitely look into it.
@@leonvanzyl Thanks for the quick answer. I'll have a look as well :)
Now waiting for the next videos in your series about Flowise!
Hello leon I have followed the same but i have got this error I don't know why ....Error: Invalid JSON in the IfElse's Input Variables: SyntaxError: Expected ',' or '}' after property value in JSON at position 15
did you resolve it? i get the same error
Same
I'm having the same problem
Anyone solve it?
Error: Invalid JSON in the IfElse's Input Variables: SyntaxError: Expected ',' or '}' after property value in JSON at position 11
same issue
Very useful video. One question how can u connect the output for example of the multiple chains (Tutorial 3) to the input of this, for creating for example a survey depending of the result?
Great Series! I love this tutorial. I have few question.
I want to design a flow with local installed deepseek-r1 model. I want that when customer said Hello or hi or any greet chat-bot response with good greeting. But when customer ask directly a question it response with greeting + answer. For example if customer provide his account number to know the balance, I want to search database of that account number if exist i inform him the balance. How could I achieve this in flow. Please give me idea. By the way deepseek-r1 reply with so many sentence even for Hi, Hello
Hello Leon, as always great video! I do have a question, how do you connect an output parser to a flowise assistant?
You can only attach output parsers to LLM chains unfortunately.
You could split your solution into 2 flows and orchestrate the logic with something like n8n or Make.com.
Step 1. Call the Tool Agent and get response
Step 2. Pass the agent response to an LLM chain with an output parser.
Great video, thx.
Can you give me your opinion on why you are working with flowise and not with langflow? Are there big differences?
Dude, Langflow is great as well. Planning a Langflow series as well. There was a time when Flowise was far ahead in terms of production-readiness, but apparently the gap is closing.
Amazing video, Thanks for making this video Leon.
I was wondering if you could help answer a question I had - The IfElse works well for 2 scenarios, but what about when I have more than 2 scenarios. Think of a list of like 5 options that a variable can take, and then there are 5 different prompts that get acted upon based on the variable's value. Is that something that the IfElse Function can do, or if there's some other way to go around it.
Hey there. You can add as many ifthen nodes as you want to the flow.
Since we're passing a JSON object into the node (as in this video) you could pass in multiple properties.
You can then check those values and call the next ifthen in the chain.
I'm not a 100% sure what your scenario is, but there is probably an optimal way to solve it.
Unless if you're trying to build an old school chatbot that drives the conversation down different paths. In that instance you should or use Botpress or Voiceflow.
@@leonvanzyl Thanks for the reply. I am trying to build a bot that has these 2 steps
1. Understand what the user wants to do
2. Route to an appropriate Chain/Agent that takes it forward
I was thinking of using the IfElse node for the first part & then routing to an appropriate chain. However it seems that one IfElse node can only have 2 outputs. If I want to add more, I'll have to add multiple IfElse nodes. Is there a better way to be doing this?
Hi Leon, thank you to share your knowledge with us. Is it possible to include my survey with pre-defined questions , and then get the sentiment and customer answer using parsers ?
Absolutely. That's actually an easy implementation using a conversation chain. Provide the list of questions in the prompt and tell the model to ask the user each of these questions and once all answers are collected, provide a sentiment.
@@leonvanzyl thank you so much
Great video thx! a little question for you, how can I use my own pdf files from the beginning and getting a JSON as on output ? Thanks
Stellar tutorials so far! Could you clarify a small thing please? In the 2 positive/negative Prompt Templates we set a placeholder {review}, however this parameter is not filled in by anything since by default they're mapped to empty string and we dont map them to an input variable like we did in other cases. I assume it works because it remembers the review from context, but how would you pass the review to the Prompt Templates after the if/else node?
This might have been missed in the editing, sorry about that. I recommend mapping the prompt values instead of having them passed in by happen chance.
Hi Leon, is there a select case utilities instead of true or false? My use case is getting openai to determine what area of question eg Complaints, Products info, Sales enquiry, etc and then redirect to different chain based on the question.
There isn't, but that would be awesome! All these ifelse nodes can get chaotic 😁
Hi Leon,
I wonder if flowise may parse a response to an image/video same as you did for JSON snippet. Assuming the response coming from the LLM contains img/video src is there a way to show ?
Thanks
Hey there.
At the moment there are only 3 parsers available and you're not able to define your own (as you can with Langchain itself).
Hello León first thanks for your efffort on this amazing videos. I have two questions
1- there is way to chat with local files like a code project if yes it can write in local files ?
2- there is a way to chat with a documentation of a website?
Thanks you much
You're welcome 🤗.
For points 1 and 2, you can chat with local files and web pages using RAG. Check out my video on RAG chstbots.
As for writing files, you can use an agent with tools.
@@leonvanzyl thanks so much
hey friend is it possible use this structure together with the Conversational retriever tool? wheres the agent only requesting this structure when need some validation? very good idea if possible could you create a video about it please?
🤔Is there a reason you're using separate LLM model nodes for the 2 chains, even though they use the same model with the same settings? I wonder about it also when I use Pinecone or the OpenAI Embeddings nodes in multiple places in the flow.
Using different models for different purposes is what Langchain and Flowise is all about. There's really no science behind it, but my advice to you is to use the cheapest model for each step in the process.
Hi Leon!
really Thank you for your Helpful videos, I have a question on Flowise AutoGPT.
How we can connect Multi AutoGPT Agents together! Assuming we have 3 or more Agents and each has different responsibilities.
You're welcome 🤗.
I'll actually look into this and will create a video if / once possible.
This is excellent, thanks!
You're welcome 🤗
When the if-else section, which we entered as "sentiment", is changed to "review", the result does not change. Where did this "sentiment" we wrote come from?
Your videos are the best ones! Flowise should reward you haha!
This topic is probably one of the most important and it has been explained perfectly.
I see that the "output parser" node works only with the LLM Chain node. However the LLM Chain doesn't allow the "document" Node. The Chains that allow documents (i.e pdf are the Conversational). But conversational chain doesn't have the "output parser" option.
Do you know how to combine both? In order to combine output parsers, but also Documents uploads?
You could use prompt chaining (previously video). The first chain could be your conversation chain.
Second chain is an LLM chain with parser 👍
@@leonvanzyl first, thanks for your answer! But I cannot do that (or I think that).
The output generated by these chains is not like the output from the LLM Chain (that can be an 'output prediction'). For Conversation Chains the output is "chain". Do I need to transform that?
how would you create a chain where: 1. Use search (serp) to get a list of urls for a company 2. Use structured output parse to return a list of urls. I can't find out how to link the response from search to a structured output. Otherwise I'll need to create 2 flows, one for search and send the results to output parser.
Leon you are a great teacher. I am interested in how to get this thing working an implemented on a website. As chat or as fullwidth html.
We'll have a look at website embedding in this series. I do have an older video on that topic on my channel, but in the new video I'll include a bit more information about customizing the chat window.
could you do a video on how to receive from a FTP or Get request? love these tutorials
Will definitely create a video on API tools soon
cant wait!! i love vercel for hosting and using s3 buckets@@leonvanzyl
Hi @Leon , thank you for another great Tutorial. When i try to fetch the data from pinecone and the error appears that the apikey is wrong? I've already changed it several times. Any solution?
Hey there!
Are you in the latest version of Flowise? I know they changed that node and credentials recently to accommodate for Pinecone Serverless.
Other than that, no idea.
Great video series, but I wonder if another LLM than ChatGPT could be used. Like HuggingFace/Chat the LLama or Mixtral model. How can one create such a chat?
Of course you can. Flowise includes integration with my different models and providers.
OpenAI offers some advance features that we'll look at soon (and is by far the most Common models used in industry).
We'll have a look at using Open source models in this series for completeness sake 👍
Hi Leon, great video. Quick question, can you chain several ifElse nodes to each other, lets say if there are more options than just true or false?
You can make it as nested and complicated as you want 🤗
how do i integrate this flow along with my pinecone database so that when the parser goes through the logic it will only out very specific texts i ask it to output?
You could use a prompt chain (previous video) where the first chain is a retriever and second chain an LLM chain with parser 👍
I'm getting the following - Error: ReferenceError: $sentiment is not defined
Hey Leon, any chance you could do a segment on how to use API loader on live feeds(like Yahoo Finance)? I just can't figure it out :)
Will see what I can do. So many cool tools to go over 😁
(nodeInstance.run is not a function) When I save and clear the chat i get that message. What could i be doing wrong
?
Hi there,
I encountered the "nodeInstance.run is not a function" error, which I discovered was due to an attempt to optimize the workflow. In an effort to minimize nodes, I initially used a single OllamaNode connected to three LLM Chains, deviating from Leon's tutorial where he explicitly used one ChatOpenAI node for each LLMChain. It appears that Flowise doesn't support this type of shortcut.
The solution was straightforward: I added the two missing ChatOllama nodes (one for each LLMChain), and the workflow now functions perfectly. If you're experiencing a similar issue, you might have been trying to economize on ChatOllama nodes as I did.
On a related note, I'm using the Phi3.5:3.8-mini-instruct-q4_k_m model, which runs smoothly on my local hardware.
I love it. Do you know how can I disable telemetry? I couldn't find the env file. Where's the location? Or so I have to create one?
Lol, not sure how its output parsers related 😁.
If you used option 2 or 3 to set up Flowise, you access the .env file in the Flowise folder under components/server.
@@leonvanzyl It's not. But I appreciate you and your content very much ❤️ so I thought to seek help from you 😊
How would you compare Flowise to something like Autogen 2.0. In my mind they are alternatives, different roads to get to the same place, but am I missing something?
It seems that the IfElse Function node has disappeared from the Add Nodes menu. Was there recently an update that replaced this node?
That's really interesting. Did you check under the utilities menu?
@@leonvanzyl Thanks for the reply! Yes I did, I only see Get Variable, Set Variable, and Sticky Note.
I'm hoping to find the IfElse or something comparable to it so I can do what you're doing in the video
Ah turns out I was using AgentFlows so there is no IfElse node in Utilities, it's only in ChatFlows
I have a question/challenge. I want to interview a user to gather a list of information about the user. How to I create a “loop” that keeps interviewing the user until all info is provided before continuing in a process?
I get you. The best solution that I found was to use the Assistants API. I have a video on this and really easy to implement.
For example, if you want to collect information about a lead, the assistant will keep asking until all information is collected.
Leon, I'd love to get your input about this. What could be the main challenge in creating an assistant inside flowise that 'Know and understand everything about the platform'. This AI assistant can suggest flows, components, tools, etc inside flowise based on any use case the user wants. Then take this assistant further to actually automate the creation of these flows. Please give me the main challenging points. I tried to create a custom assistant on chatgpt, but it's too stupid. it doesn't understand that AI assistants can return JSON responses and call functions. Their inability to understand this part alone makes creating AI-powered apps through Flowise or even coding in general, a difficult task because their suggestions are outdated.
That's a very good idea. I'd also love to see more applications embed Chatbots into the UI in order to provide guidance and assistants.
These are technical to implement and you'll need to understand coding. It's definitely outside the scope of Flowise.
Let's scratch the automation part out. What would be the main challenge here to create a coding assistant chatbot that is fully aware of flowise project, every single feature it has and how they work, and is able to suggest the flows required for the given use-case and can tell you 'Which nodes to connect with other in order to achieve what you want'
What do you think about using this use case in your next Flowise 2024 series as an example for creating chatbots/assistants? This way everyone will actually understand better and also they get to create their own assistant for flowise that will help them in whatever they want. @@leonvanzyl
Do you think about create a full course to sell someday?
Good question. Not sure if there's a demand. I just enjoy creating content for you guys.
Love it!!
Thank you
Excellent.
Thank you 👍
how to use the additional parameters in the retrieval conversational chain.
Which ones?
When will you add a hints feature, right in the chat window, like in gpt, so that the user can select a hint and follow it. This can be used to create a chat menu. For example, About Company, Our Services, or Products, Questions/Answers, Contacts. Without this feature, your bot lags behind the leaders of the chat market, of which there are now two, you know who I mean.
Love the idea.
I'm not the creator of Flowise, so can't tell you if they plan on introducing such a feature, but it might be an idea to create a PR on their GitHub repo.
@@leonvanzyl You can create this for them, they know you better than me and they will listen to you more than to me, can you write this to them?
i am using pdf document upload and i asked unrelated questions to that document it will showing the ans to restrict that what we want to do pls suggesst one video for that related.
It doesn't have anything to do with output parsers. You can simply change the prompt to include words like (only answer from context).
@@leonvanzyl
in the latest flowise there is not there prompt connection to the retrieval conversational chain for that what i have to use
in the Conversation retrieval QA chain had only additional parameters there is not there any prompt link
Hi, I wanted to buy you a coffee, is it possible to add PayPal to the payment options? I don't have access to visa and the other payment options. I think many would also prefer to have PayPal option.
That is very kind of you 🙏.
Here's a PayPal link:
www.paypal.com/ncp/payment/EKRQ8QSGV6CWW
@@leonvanzyl Tnx for the tutorials.
Hi bro, how long does it usually take to get an email back on your cognitative AI platform? love your videos but need some help with a project ASAP. Thank you !!
I'll look into this. Been overwhelmed by enquiries since the start if the year 😅. Sorry about that.
Thank you so much [your name], I'm so happy to know you! Yeah, OK 😅
@leonvanzyl
May be was an ifElse parser problem, not in Output Parser. I exclude the Output Paser an use use the prompt
---
You are an expert JSON coder
Determine if the following review is positive:
{review}
Answer only in perfect JSON codifcation
---
That gave me perfect answer in JSON format, and I feed the fiElse block with it and still have the Error: SyntaxError: Unexpected token '{'
Please check and fix it. Thanks in advance
I'm having the same error.
I think it might have to do with the way "Input Variables" dialog formats the JSON object so that the IfElse (or any of the other utilities for that matter) doesn't know how to parse it. I saw there was a bugfix merged into the 1.8.1 release, but that's the release I'm using and the bug is still there.
How to add output parsers to conversational retrieval chain?
Don't think it's the correct use of the conversation chain. What's the use-cases?
Example: We have a Knowledge base with some documents say the flowise documentation from their website + transcripts of all your videos on flowise. When a user asks a query, the user should get answer + the relevant video link of your playlist + 2-3 follow-up questions to guide the user what to ask next. If this o/p can be structured using an o/p parser then it will be easy to render in the chat window. @@leonvanzyl
I am using conversational Retrieval QA Chain.
I tried "good service, bad recipe" and got a positive sentiment.
I'm curious. Which model did you use?
@@leonvanzyl llama v3
awesome
Thanks
Please Create a workflow with flowise and Gemini Pro api key for chat with pdf
Excellent idea. Will do.
So South African :D
😁
show
hmm... it seems much easier to just use code...
Is gpt vision available in Flowise?