Hello. Wondering if anybody can help with this. I have created a BOT, but I am struggling with an IF condition. I have created the bot on the non coding side. I basically want the BOT to give two different responses to what a user inputs. The user will be asked to confirm a number. If this number is 5 characters or above, the user will be advised one thing and if the user inputs a number using 4 characters or below, they will be advised another scenario by the BOT. Just cant seem to be able to set a condition for this, only giving me the option to set a word as a condition.
Would appreciate if somebody could provide some feedback on how to do this 😀
Solved! Go to Solution.
Hi @Anonymous,
Can you share a screenshot of your test conversation/chat with your current PVA bot? This way I can see with which numbers you are testing 😀
I also need to update the flow logic. I now see your requirement is 4 characters or less. So, we probably need to add a lessOrEquals function to our length expression.
Hi @Anonymous,
I have changed the setup slightly. Can you have a look and try if the setup below works for you?
1. In the compose action I am using a updated expression.
if(lessorequals(length(triggerBody()['text']), 4), 'Organisation A', if(equals(length(triggerBody()['text']), 5), 'Organisation B', '6 characters or more'))
In that expression I am checking if the length is less or equal to 4. If this is true I am outputting Organisation A. When false I am checking if the length equals 5. If that is true I am outputting Organisation B. For a length that is higher than 5 I am outputting the text '6 characters or more'.
2. In the topic I have updated the conditions. Instead of checking for a number we can now check for the name of the Organisation.
Hi Dennis.
I have updated it to exactly how you have it apart from making changes to text I want to apply -
Hi @Anonymous,
You are very close. I see you are still using the numbers in the condition actions. What you are outputting in the expression in the flow needs to match what you are checking in the pva condition action.
Below is a screenshot, hope this makes sense?
You can use whatever you want in your expression in flow and the condition in your topic. As long as those values match. See also in my example below.
Hi Dennis. Thank you for that, I have fixed that and the expression in the condition matches the expression from the flow. However, please see below, I am inputting a 5 digit number and its still going to the unwanted condition on the right hand side, not the one on the left:-
Not sure why its doing it, as the expression seems to be correct in terms of what it is to state when a 5 digit number is put in (Should go to the left hand condition stating that it is a supported community code. Sorry if this is becoming a pain and I am still doing something wrong, but not sure how it can be wrong when all what you have suggested is now in place. The expression I have is:-
Hi @Anonymous,
I would keep it a bit simpler by replacing 'Go to CharacterCount' by just the text you want to show. I would also just use the numbers instead of the long text in both the flow expression and the condition action. This also makes it a bit more managable.
Can you try the setup below?
Flow expression:
if(lessorequals(length(triggerBody()['text']), 4), '4', if(equals(length(triggerBody()['text']), 5), '5', '6 characters or more'))
Topic canvas:
Thank you for that, I have ammended that and have changed the expression to what you have said and updated the fields on the canvas. However, it was still going to the other condition on the right even though I met the crietia. So, I removed this condition and now it just gets stuck:-
I have also inserted the flow chart details to see if I am doing something wrong? I tihnk all what you have said is now in there, just not sure why its still not recognising the condition is being met and giving the correct message response.
Thanks again Dennis, hopefully you spot the error and it can be sorted, appreciate your help I know I have mentioned this a LOT already 🙂
Kieran
Hi @Anonymous,
It looks like there is a space character just before the fx button in the compose action. If there is a space character in that compose action, can you remove that?
And I also have some additional questions for troubleshooting.
1. What is the trigger phrase for your topic?
In my example that is CountNumbers. That is the first thing I will type to make sure the bot knows which topic I want to interact with. I can't see that in your test screenshots. Are you typing the trigger phrase first before you enter the number?
2. Can you add another compose action and add the inputnumber field to it?
Via peek code we can check if the internal name of your field is the same as in the expression we are using. Potentially it could be different and that can be a root cause for your wrong CharacterCount output.
3. Can you peek code the current compose action?
Like mentioned earlier in this post. It looks like there is a space character just before the expression.
4. Can you have a look at the history of the flows?
In the history it is also easy to spot what the system is trying to process.
Hi Dennis.
So sorry, I have rectified that now and added in the new compose. My trigger phrase is going to be numbers that we support, as it will be users asking questions in relation to that. See below:-
So, above has 5 codes for now for testing purposes and this error is happening even though I am putting one of the 5 digit codes in, which is where it then asks me. I am going to have all codes there for community and for the 4 digit ones supported by Emis Web (if this makes sense?) so as long as thats being met, it will ask if the user is wanting to discuss an Emis CDB ORG code.
Below, is the new look of the compose with the additional one you have mentioned:-
The screen shots are the opposite way around there sorry, but hope it shows the full flow chat, as well as my expression which you provided. Do you think in theory this should now work if I am especially putting in trigger phrases (but it should work regardless with the 5 or 4 characters being entered with the Character Count being met). Sorry if I have waffled on there, hope I make sense.
Thanks Dennis, look forward to hearing back 😀
Kieran
Hi @Anonymous,
If the trigger phrase is the same as the actually code this might confuse the bot. When you retype the code in response to 'Can you please reconfirm the Org code' question the bot might start over again and will ask the first question again.
Typically a trigger phrase is something a user enters in the chat window to start a conversation with the bot. I would use something random like 'I need help with Emis CDB' or even just one word like 'Emis'.
What an amazing event we had this year, as Microsoft showcased the latest advancements in how AI has the potential to reshape how customers, partners and developers strategize the future of work. Check out below some of our handpicked videos and Ignite announcements to see how Microsoft is driving real change for users and businesses across the globe. Video Highlights Click the image below to check out a selection of Ignite 2023 videos, including the "Microsoft Cloud in the era of AI" keynote from Scott Guthrie, Charles Lamanna, Arun Ulag, Sarah Bird, Rani Borkar, Eric Boyd, Erin Chapple, Ali Ghodsi, and Seth Juarez. There's also a great breakdown of the amazing Microsoft Copilot Studio with Omar Aftab, Gary Pretty, and Kendra Springer, plus exciting sessions from Rajesh Jha, Jared Spataro, Ryan Jones, Zohar Raz, and many more. Blog Announcements Microsoft Copilot presents an opportunity to reimagine the way we work—turning natural language into the most powerful productivity tool on the planet. With AI, organizations can unearth value in data across productivity tools like business applications and Microsoft 365. Click the link below to find out more. Check out the latest features in Microsoft Power Apps that will help developers create AI-infused apps faster, give administrators more control over managing thousands of Microsoft Power Platform makers at scale, and deliver better experiences to users around the world. Click the image below to find out more. Click below to discover new ways to orchestrate business processes across your organization with Copilot in Power Automate. With its user-friendly interface that offers hundreds of prebuilt drag-and-drop actions, more customers have been able to benefit from the power of automation. Discover how Microsoft Power Platform and Microsoft Dataverse are activating the strength of your enterprise data using AI, the announcement of “plugins for Microsoft Copilot for Microsoft 365”, plus two new Power Apps creator experiences using Excel and natural language. Click below to find out more about the general availability of Microsoft Fabric and the public preview of Copilot in Microsoft Fabric. With the launch of these next-generation analytics tools, you can empower your data teams to easily scale the demand on your growing business. And for the rest of all the good stuff, click the link below to visit the Microsoft Ignite 2023 "Book of News", with over ONE HUNDRED announcements across infrastructure, data, security, new tools, AI, and everything else in-between!
In the bustling world of technology, two dynamic leaders, Geetha Sivasailam and Ben McMann, have been at the forefront, steering the ship of the Dallas Fort Worth Power Platform User Group since its inception in February 2019. As Practice Lead (Power Platform | Fusion Dev) at Lantern, Geetha brings a wealth of consulting experience, while Ben, a key member of the Studio Leadership team at Lantern, specializes in crafting strategies that leverage Microsoft digital technologies to transform business models. Empowering Through Community Leadership Geetha and Ben's journey as user group leaders began with a simple yet powerful goal: to create a space where individuals across the DFW area could connect, grow their skills, and add value to their businesses through the Power Platform. The platform, known for its versatility, allows users to achieve more with less code and foster creativity. The Power of Community Impact Reflecting on their experiences, Geetha and Ben emphasize the profound impact that community engagement has had on both their professional and personal lives. The Power Platform community, they note, is a wellspring of resources and opportunities, fostering continuous learning, skill enhancement, and networking with industry experts and peers. Favorite Moments and Words of Wisdom The duo's favorite aspect of leading the user group lies in witnessing the transformative projects and innovations community members create with the Power Platform. Their advice to aspiring user group leaders? "Encourage diverse perspectives, maintain an open space for idea-sharing, stay curious, and, most importantly, have fun building a vibrant community." Building Bridges, Breaking Barriers Geetha and Ben encourage others to step into the realm of user group leadership, citing the rewarding experience of creating and nurturing a community of like-minded individuals. They highlight the chance to influence, impact, and positively guide others, fostering connections that extend beyond mere technology discussions. Joining a User Group: A Gateway to Growth The leaders stress the importance of joining a user group, emphasizing exposure to diverse perspectives, solutions, and career growth opportunities within the Power Platform community. "Being part of such a group provides a supportive environment for seeking advice, sharing experiences, and navigating challenges." A Year of Milestones Looking back at the past year, Geetha and Ben express pride in the group's growth and global participation. They recount the enriching experience of meeting members in person at the Microsoft Power Platform conference, showcasing the diverse range of perspectives and guest speakers that enriched the community's overall experience. Continuous Learning on the Leadership Journey As user group leaders, Geetha and Ben recognize the continuous learning curve, blending interpersonal skills, adaptability, and dedication to foster a vibrant community. They highlight the importance of patience, persistence, and flexibility in achieving group goals, noting the significance of listening to the needs and suggestions of group members.They invite all tech enthusiasts to join the Dallas Fort Worth Power Platform User Group, a thriving hub where the power of community propels individuals to new heights in the dynamic realm of technology.
This is the ninth post in our series dedicated to helping the amazing members of our community--both new members and seasoned veterans--learn and grow in how to best engage in the community! Each Tuesday, we feature new content that will help you best understand the community--from ranking and badges to profile avatars, from Super Users to blogging in the community. Our hope is that this information will help each of our community members grow in their experience with Power Platform, with the community, and with each other! Today's Tip: All About the Galleries Have you checked out the library of content in our galleries? Whether you're looking for the latest info on an upcoming event, a helpful webinar, or tips and tricks from some of our most experienced community members, our galleries are full of the latest and greatest video content for the Power Platform communities. There are several different galleries in each community, but we recommend checking these out first: Community Connections & How-To Videos Hosted by members of the Power Platform Community Engagement Team and featuring community members from around the world, these helpful videos are a great way to "kick the tires" of Power Platform and find out more about your fellow community members! Check them out in Power Apps, Power Automate, Power Pages, and Copilot Studio! Webinars & Video Gallery Each community has its own unique webinars and videos highlighting some of the great work being done across the Power Platform. Watch tutorials and demos by Microsoft staff, partners, and community gurus! Check them out: Power Apps Webinars & Video Gallery Power Automate Webinars & Video Gallery Power Pages Webinars & Video Gallery Copilot Studio Webinars & Video Gallery Events Whether it's the excitement of the Microsoft Power Platform Conference, a local event near you, or one of the many other in-person and virtual connection opportunities around the world, this is the place to find out more about all the Power Platform-centered events. Power Apps Events Power Automate Events Power Pages Events Copilot Studio Events Unique Galleries to Each Community Because each area of Power Platform has its own unique features and benefits, there are areas of the galleries dedicated specifically to videos about that product. Whether it's Power Apps samples from the community or the Power Automate Cookbook highlighting unique flows, the Bot Sharing Gallery in Copilot Studio or Front-End Code Samples in Power Pages, there's a gallery for you! Check out each community's gallery today! Power Apps Gallery Power Automate Gallery Power Pages Gallery Copilot Studio Gallery
Are you attending Microsoft Ignite in Seattle this week? If so, we'd love to see you at the Community Lounge! Hosted by members of our Community team, it's a great place to connect, meet some Microsoft executives, and get a sticker or two. And if you're an MVP there are some special opportunities to meet up! The Community Lounge is more than just a space—it's a hub of activity, collaboration, and camaraderie. So, dive in, explore, and make the most of your Microsoft Ignite experience by immersing yourself in the vibrant and dynamic community that awaits you.Find out the schedule and all the details here: Community Lounge at Ignite! See you at #MSIgnite!
You are now a part of a vibrant growing group of peers and industry experts who are here to network, share knowledge, and even have a little fun! If you have not yet registered, please visit here to learn how to register! Now that you are a member, you can enjoy the following resources: The Microsoft Copilot Studio Community Forums If you are looking for support with any part of Microsoft Copilot Studio, our forums are the place to go. They are titled "Forums" and there you will find technical professionals with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Copilot Studio Community forums! Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered! Microsoft Copilot Studio Ideas Do you have an idea to improve the Microsoft Copilot Studio experience, or a feature request for future product updates? Then the "Copilot Studio Ideas" section is where you can contribute your suggestions and vote for ideas posted by other Community members. We constantly look to the most voted Ideas when planning updates, so your suggestions and votes will always make a difference. News & Announcements The Copilot Studio Community News & Announcements is your stop to get all the latest news around Community events and announcements. This is where we share with the Community what is going on and how to participate! Copilot Studio Samples, Learning and Video Galleries We have galleries that can assist you with information on creating a bot in our Webinars and Video Gallery, and the ability to share the bots you have created in our Bot Sharing Gallery. Check out the awesome content being shared there today! Again, we are excited to welcome you to the Microsoft Copilot Studio Community family! Whether you are brand new to the world of bot creation or you are a seasoned Copilot Studio veteran, our goal is to shape the Community to be your ‘go to’ for support, networking, education, inspiration and encouragement as we enjoy this adventure together! Let us know in the Community Feedback if you have any questions or comments about your Community experience. To learn more about the Community and your account be sure to visit our Community Support Area boards to learn more! We look forward to seeing you in the Copilot Studio Community!The Copilot Studio Community Team
When Power Virtual Agents launched in December 2019, it was at the forefront of AI-powered chatbots, using generative AI to help users make, test, and publish powerful bots faster. Now, nearly four years later, we're delighted to share that as of November 15th, Power Virtual Agents capabilities are now part of Microsoft’s new product, Copilot Studio, Microsoft’s conversational AI platform to customize Microsoft Copilot and to build your own copilot. As a result, the Power Virtual Agents name will no longer be used--and we will now be known as Copilot Studio Community! You can learn more about the updates at: aka.ms/MCSblog While the name may have changed, our commitment to our community hasn't. We are excited to keep moving forward with you into the future! Thank you for being part of Power Virtual Agents Community--and welcome to Copilot Studio Community!The Power Platform Community Engagement Team
User | Count |
---|---|
4 | |
3 | |
3 | |
2 | |
1 |
User | Count |
---|---|
5 | |
3 | |
2 | |
2 | |
2 |