Artificial Intelligence (AI)

Writing anything about artificial intelligence is doomed. The field is expanding and changing so quickly that a lot of what is written is obsolete almost before it is read. However, it is something that will have an impact on all our lives and will also impact the way we go about discovering requirements. It is already doing both of those and will do it to an even greater extent in the future .

Artificial intelligence (AI) is the name given to intelligent machines, or bots (software, really), that mimic human thinking capabilities. AI bots understand and process natural language and images, and so respond much as a human would. This is referred to as general or strong AI, as it can reason, solve problems, and learn from experience, very much like a human being. General AI is useful for your requirements discovery tasks. You can chat with it, ask questions, and ask for recommendations for requirements .

Narrow AI engines are specialized and designed to perform a specific task. They can also learn from experience and make decisions. Embedding this kind of AI in business processes is beneficial. For example, you might embed AI in a warehouse management solution to monitor stock as it comes into the warehouse and goes out as it is sold. Demand for different items changes due to seasonal demand and fashion. AI would learn which items are in demand, what trends are forming, and predict popularity more accurately than a human could. It would also suggest housekeeping routines whereby the popular, and soon to be popular, items are moved closer to the dispatch bays. Your task as a business analyst is to discover opportunities to use AI as part of your customer’s business process .

AI will establish itself as an essential part of our businesses and business processes. To what extent it transforms from being the faithful servant to controlling more and more of a business remains to be seen. In the meantime, we can get the best of the opportunity that AI provides by using it as an intelligent and useful assistant .

Using AI for Requirements Discovery

You can ask one of the AI bots, such as ChatGPT from OpenAI, to generate a set of requirements for the solution of your choice, and the bot will search a large amount of data looking for specifications for similar applications. It then returns a proposed specification. Job done; take the afternoon off. Or can you?

It might work if you’re prepared to risk your customer’s future business (and possibly your job and reputation) on the accuracy of the AI bot. Also, consider that AI uses historical data to generate its requirements. This means that the AI-generated requirements probably won’t go beyond what exists at the moment. Additionally, some AI bots have been known to sometimes generate completely fictitious results.

However, all of that does not mean that AI cannot be useful to you as a business analyst. It can be very useful indeed, if you think of it as your assistant and not your replacement.

Suppose that you are prototyping, and you’re looking for ideas. You ask your AI chatbot for a process model by prompting it with this:

“I am selling shirts. I need a process to fulfill the orders from my customers. The fulfillment process must include packaging and shipping the shirts to the customers.”

We tried it, and ChatGPT came back with this:

Sure! Here’s a process for fulfilling orders and shipping shirts to customers:

  1. Receive the order: Once an order is placed, you will receive a notification from your e-commerce platform or website.

  2. Prepare the order: Locate the shirt(s) in your inventory and check for any defects or quality issues. If the shirt needs to be printed with a design or logo, do so at this stage. Then, package the shirt(s) securely, ensuring they are protected during shipping.

  3. Choose a shipping carrier: Decide on a carrier for shipping the package. Popular options include USPS, FedEx, and UPS.

  4. Print shipping label: Once you have chosen a carrier, print out the shipping label provided by your e-commerce platform.

  5. Mark as shipped: Mark the order as shipped in your e-commerce platform, and provide the customer with the tracking information.

  6. Deliver the package: Deliver the package to the shipping carrier or schedule a pickup for the package to be picked up at your location.

  7. Follow up: Monitor the shipping status to ensure the package is delivered to the customer successfully. If there are any issues or delays with delivery, communicate with the customer and the carrier to resolve the issue.

Treat this as a starting point , and for each AI-generated step in the process, ask the following questions.

  • ● Is this touching a topic that you have not previously considered?

  • ● Does it suggest one or more processes that have not yet been discussed with the stakeholders?

  • ● Can this be used as is, or is it more useful if modified?

  • ● Does the suggested process suggest that you are solving the wrong problem and should revise your prompt?

  • ● Does it require drilling down to find the details before you can decide its usefulness?

  • ● Should you refine your prompt and see if the chatbot can produce a better process?

  • ● Or would it be profitable to abandon this process and generate another using a different prompt?

The point is not to have AI generate your processes and requirements, but to use it to generate input to your analysis and innovation.

The point is not to have AI generate your processes and requirements, but to use it to generate input to your analysis and innovation.

There are other ways you can use AI for requirements discovery.

You could also ask your AI chatbot to write preliminary stories . Some of them might be useful for your story map; others will need investigation and modification before they become useful. The point is to generate input for your analysis. If you prompt well enough, you could get valid stories from the AI bot, but prudence says that you should check everything carefully.

Natural language processing (NLP) is part of AI and is used to analyze large volumes of text and to identify patterns. You can use this ability in your requirements discovery. For example, you can ask your AI chatbot to analyze your support tickets to determine common themes or patterns from the customer difficulties registered by the support people. These themes indicate the most important areas to deal with and will probably suggest requirements that might not have been obvious before. Similarly, your chatbot should analyze customer feedback and user reviews to find the good, the bad, and the ugly with the current business. Again, this analysis should help you find previously undiscovered requirements.

Analyzing large volumes of customer feedback should give you strong indications for your prioritization. Knowing, not guessing, what is important to your customers should be one of the prime drivers of the priority in which you discover and develop requirements.

Machine learning (ML), another part of AI, builds models from the supplied or training data. The models are predictive; they help you identify potential future requirements. This relies of course on having the right training data. So, let’s suppose that you have the right data on your and your competitors’ products. By analyzing the way that these products are used, it is possible for ML to identify patterns of usage and make predictions on different ways that your product could be used in the future. ML would also identify the features or processes in the products that caused the most complaints or that customers found hard to use.

This is grist for your business analyst’s mill—these predictions are the basis for requirements that can enhance your current product or be incorporated in new products.

Business rules are sometimes hard to find, yet they must be incorporated into any new solutions you develop. They are hard to find in many organizations because there is no central repository. If the organization is using a business rules engine , then the problem is solved—all of the rules are in one place and the only requirement is to consult the business rule engine whenever the solution needs a business decision. That is of course providing all the rules are in the engine. On the other hand, if there is no central repository, then natural language processing (discussed above) can sift through huge amounts of data to uncover the business rules for you.

Data mining techniques can be used to analyze data from various sources to identify requirements. Because there is so much data to mine, you need the help of NLP or a chatbot to do most of the work. You might start with your bot analyzing your customer support tickets to determine the most common problems and write requirements to alleviate or eliminate the problems. You might have the bot trawl social media posts to find what customers like and dislike.

If your customers are willing, chatbots can be used to interact with them directly in a conversational manner. The idea is for the chatbot to explore and uncover requirements that might not have been obvious to you or your customers. There is a caveat: You should never give confidential information to a chatbot. The chatbot sees and remembers everything, and you have no idea what it might do with your confidential information.

AI has a role in requirements discovery if used wisely. It should be seen—at least in the foreseeable future—as an assistant to help you find the requirements. It can also help you find new and innovative requirements that otherwise might not have come to light. To do this, it is of course important that the data you’re using is high-quality data and that the AI algorithms are accurately trained.

You can ask your AI assistant to check your requirements and stories. It can root out ambiguous terms and inconsistent terminology. It might (no guarantees) find gaps in the requirements, or ambiguous or misdirected requirements.

AI is a powerful tool, and it has a future assisting you with your business analysis and requirements discovery.

AI in Business Processes

The next facet of AI comes into play when you propose to have AI as part of your solution . Suppose that you are working on a traffic monitoring system. The intention is to control the traffic lights of a major city, with the goal of maximizing traffic throughput. When the lights are properly coordinated throughout the city, traffic is able to move more quickly and smoothly with fewer interruptions (such as being stopped at the lights, or in gridlock).

Traffic volumes and the needs of drivers vary throughout the day. After the morning commuter rush, delivery trucks with their frequent stops take over, then this is replaced by the lunchtime traffic pattern, and so on until the afternoon commuters return home. Then, the evening pattern kicks in with people going out for their entertainment.

The regular usage patterns make programming traffic lights more complicated, but what makes the task even harder is that these patterns evolve and change over time. Sometimes these changes are gradual, and sometimes they happen quite rapidly. For example, people are coming into the office less frequently, with some weekdays—particularly Fridays—having very little commuter traffic. Seasonal sales can bring people into the city to go shopping. Special events and public holidays have an impact, as does the weather. We have also seen how a pandemic can have a marked impact on traffic.

Enter AI. Your plan is to have a real-time AI component learn the evolving traffic patterns and the volume of traffic in different parts of the city. It will manipulate the traffic lights to optimize the traffic flow according to current conditions.

Now your business analysis skills come into play. AI can only be as good as the questions it is asked. That is, the AI engine has to correctly understand that your intention is to optimize the traffic flow, and exactly what you mean by “optimize.” Does that mean that a vehicle will get to its destination more quickly, or does it mean that because of the smooth flow of traffic, the driver perceives he is getting there sooner, even if his speeds are actually slower? Does “optimize” mean that traffic coming from, say, the north, is given higher priority than that from the west? Your bot cannot “optimize” traffic unless the prompts you feed it lead in the right direction.

Prompting

Prompt engineering , the term for working out the best prompts or questions for AI, should now come up with a prompt that optimizes traffic in the city. As indicated above, you must be precise as to the meaning of “optimize.” The prompt would be much longer than a single sentence, as you are dealing with a complex problem. An embedded AI bot is prompted once at the beginning. Thereafter—if you have prompted correctly—it will learn about traffic and continue to refine its behavior, resulting in a continual improvement in the city’s traffic flow.

Let’s look at the learning part. As time progresses, the AI bot learns what works and what doesn’t. It learns, for example, that fires disrupt traffic, so it learns at which times of the day fires are more likely to occur. It learns how to set the traffic lights to get the fire engines to the fire as quickly as possible.

Your prompt would have had to tell the bot what you want it to learn and what to do with what it learns. Your prompt also tells the bot what it must never do (turn all the lights green), and any other rules it must stick by.

This is a shift in the business analyst’s responsibilities. You are now engineering prompts to produce the optimal results from your AI bot. Your analysis is about reaching a common understanding of the problem, and what role AI is to play in the solution to the problem. AI is not smart enough (yet) to understand what you are trying to achieve unless you tell it.

Your ability to write the correct prompts determines the value that your AI bot can deliver. Writing good prompts starts with understanding the real problem, which is more or less what we have been talking about throughout this book. That is, find the real problem and write the right requirements. Think of a prompt as the requirements for the AI bot. You have already seen that the right approach to requirements discovery leads to the right requirements. The right approach will also, of course, lead you to write the right prompts.

BA skills will evolve over time as AI evolves, but whatever happens, it will be exciting and promises some wonderful business analysis opportunities.

Review

The greatest potential for artificial intelligence, as far as the business analyst is concerned, is for it to be an assistant for discovering requirements. It can assist by suggesting lines of questioning, it can assist by suggesting innovations, and it can assist by reviewing requirements documentation.

AI will become part of most business processes. Your role as a business analyst is to understand what AI can do as part of those processes and to engineer the right prompts to cause the AI bot to perform as needed. This, in a way, is what BAs have been doing all along: discovering the correct problem to solve, discovering the best solution for the problem, and writing the requirements (in this case, prompts) to cause the right solution to be built. Learn whatever you can about AI. It is a significant part of your future.

Resources

As we mentioned at the beginning of this chapter, anything you write about AI is doomed to obsolescence. So, we feel it is hardly productive to give you a list of books and other resources that will be out of date by the time you read this.

At the time of writing, AI is showing explosive growth. New books, articles, and websites are appearing almost by the hour. Our best recommendation for getting an up-to-date list of references is to ask ChatGPT ( https://openai.com/chatgpt ) or one of the other bots to give them to you.

You might check out How to Create a Mind by Ray Kurzweil (Penguin Books, 2013). This looks at reverse-engineering the brain to understand it and using that knowledge to create intelligent machines.

Sal Khan, the founder and CEO of Khan Academy, in his TED Talk ( https://www.youtube.com/watch?v=hJP5GqnTrNo ) argues that artificial intelligence will trigger the greatest positive transformation education has ever seen.