Software bot
{{Short description|Type of software agent}}
{{Use mdy dates|date=October 2023}}
{{Multi-agent system}}
A software bot is a type of software agent in the service of software project management and software engineering. A software bot has an identity and potentially personified aspects in order to serve their stakeholders.{{cite book|last1=Lebeuf|first1=Carlene|last2=Zagalsky|first2=Alexey|last3=Foucault|first3=Matthieu|last4=Storey|first4=Margaret-Anne|title=2019 IEEE/ACM 1st International Workshop on Bots in Software Engineering (BotSE) |chapter=Defining and Classifying Software Bots: A Faceted Taxonomy |year=2019|pages=1–6|doi=10.1109/BotSE.2019.00008|isbn=978-1-7281-2262-5|s2cid=195064960}} Software bots often compose software services and provide an alternative user interface, which is sometimes, but not necessarily conversational.
Software bots are typically used to execute tasks, suggest actions, engage in dialogue, and promote social and cultural aspects of a software project.{{Cite web|url=https://stackoverflow.blog/2019/09/17/meet-the-bots-that-help-moderate-stack-overflow/|title=Meet the Bots that Help Moderate Stack Overflow|last=Team|first=The SOBotics|date=2019-09-17|website=Stack Overflow Blog|language=en-US|access-date=2019-11-22}}
The term bot is derived from robot. However, robots act in the physical world and software bots act only in digital spaces. Some software bots are designed and behave as chatbots, but not all chatbots are software bots.{{Cite book|last1=Erlenhov|first1=Linda|last2=Gomes de Oliveira Neto|first2=Francisco|last3=Scandariato|first3=Riccardo|last4=Leitner|first4=Philipp|title=2019 IEEE/ACM 1st International Workshop on Bots in Software Engineering (BotSE) |chapter=Current and Future Bots in Software Development |year=2019|chapter-url=https://ieeexplore.ieee.org/document/8823643|location=Montreal, QC, Canada|publisher=IEEE|pages=7–11|doi=10.1109/BotSE.2019.00009|isbn=978-1-7281-2262-5|s2cid=195065273}} Discussions about the past and future of software bots show that software bots have been adopted for many years.
Usage
Software bots are used to support development activities, such as communication among software developers and automation of repetitive tasks. Software bots have been adopted by several communities related to software development, such as open-source communities on GitHub{{Cite journal|last1=Wessel|first1=Mairieli|last2=de Souza|first2=Bruno Mendes|last3=Steinmacher|first3=Igor|last4=Wiese|first4=Igor S.|last5=Polato|first5=Ivanilton|last6=Chaves|first6=Ana Paula|last7=Gerosa|first7=Marco A.|date=2018-11-01|title=The Power of Bots: Characterizing and Understanding Bots in OSS Projects|journal=Proceedings of the ACM on Human-Computer Interaction|language=en|volume=2|issue=CSCW|pages=1–19|doi=10.1145/3274451|s2cid=53235433}} and Stack Overflow.
GitHub bots have user accounts and can open, close, or comment on pull requests and issues. GitHub bots have been used to assign reviewers, ask contributors to sign the Contributor License Agreement, report continuous integration failures, review code and pull requests, welcome newcomers, run automated tests, merge pull requests, fix bugs and vulnerabilities,{{Cite web|url=https://www.theregister.co.uk/2019/05/30/github_security_fixes/|title=Git your patches here! GitHub offers to brew automatic pull requests loaded with vuln fixes|website=www.theregister.co.uk|language=en|access-date=2019-11-22}} etc.
The Slack tool includes an API for developing software bots.
{{Cite web|url=https://zapier.com/blog/how-to-build-chat-bot/|title=How to Build a Slack Bot in 5 Minutes|last=Guay|first=Matthew|date=2019-11-22|website=Slack Blog|language=en-US|access-date=2019-11-22}} There are slack bots for keeping track of todo lists, coordinating standup meetings, and managing support tickets. The
ChatBot company{{Cite web|url=https://www.chatbot.com/integrations/slack|title=Slack integration: AI Chatbot|author= |date=2019-11-22|website=LiveChat Inc.|language=en-US|access-date=2019-11-22}} products further simplify the process of creating a custom Slack bot.
On Wikipedia, Wikipedia bots automate a variety of tasks, such as creating stub articles, consistently updating the format of multiple articles, and so on. Bots like ClueBot NG are capable of recognizing vandalism and automatically remove disruptive content.{{cite web |title=Meet the 'bots' that edit Wikipedia |url=https://www.bbc.com/news/magazine-18892510 |website=BBC News |access-date=19 September 2021 |date=25 July 2012}}
Taxonomies and Classification Frameworks
Lebeuf et al. provide a faceted taxonomy to characterize bots based on a literature review. It is composed of 3 main facets: (i) properties of the environment that the bot was created in; (ii) intrinsic properties of the bot itself; and (iii) the bot's interactions within its environment. They further detail the facets into sets of sub-facets under each of the main facets.
Paikari and van der Hoek {{cite book|last1=Paikari|first1=Elahe|title=Proceedings of the 11th International Workshop on Cooperative and Human Aspects of Software Engineering - CHASE '18|last2=van der Hoek|first2=André|author2-link=André van der Hoek|chapter=A Framework for Understanding Chatbots and their Future|year=2018|pages=13–16|doi=10.1145/3195836.3195859|isbn=9781450357258|s2cid=49562888}} defined a set of dimensions to enable comparison of software bots, applied specifically to chatbots. It resulted in six dimensions:
- Type: the main purpose of the bot (information, collaboration, or automation)
- Direction of the "conversation" (input, output, or bi-directional)
- Guidance (human-mediated, or autonomous)
- Predictability (deterministic, or evolving)
- Interaction style (dull, alternate vocabulary, relationship-builder, human-like)
- Communication channel (text, voice, or both)
Erlenhov et al.{{Cite book|last1=Erlenhov|first1=Linda|last2=Gomes de Oliveira Neto|first2=Francisco|last3=Leitner|first3=Philipp|title=Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering |chapter=An empirical study of bots in software development: Characteristics and challenges from a practitioner's perspective |year=2020|chapter-url=https://dl.acm.org/doi/abs/10.1145/3368089.3409680|location=Virtual Event, USA, Canada|publisher=ACM|pages=445–455|doi=10.1145/3368089.3409680 | arxiv=2005.13969|isbn=9781450370431|s2cid=218971687 }} raised the question of the difference between a bot and simple automation, since much research done in the name of software bots uses the term bot to describe various different tools and sometimes things are "just" plain old development tools. After interviewing and surveying over 100 developers the authors found that not one, but three definitions dominated the community. They created three personas based on these definitions and the difference between what the three personas see as being a bot is mainly the association with a different
set of human-like traits.
- The chat bot persona (Charlie) primarily thinks of bots as tools that communicates with the developer through a natural language interface (typically voice or chat), and caring little about what tasks the bot is used for or how it actually implements these tasks.
- The autonomous bot persona (Alex) thinks of bots as tools that work on their own (without requiring much input from a developer) on a task that would normally be done by a human.
- The smart bot persona (Sam) separates bots and plain old development tools through how smart (technically sophisticated) a tool is. Sam cares less about how the tool communicates, but more about if it is unusually good or adaptive at executing a task.
The authors recommends that people doing research or writing about bots try to put their work in the context of one of the personas since the personas have different expectations and problems with the tools.
Example of notable bots
- Dependabot and Renovatebot update software dependencies and detect vulnerabilities. (https://dependabot.com/)
- Probot is an organization that create and maintain bots for GitHub. The example bots using Probot are the following.
- Auto Assign (https://probot.github.io/apps/auto-assign/)
- license bot (https://probot.github.io/)
- Sentiment bot (https://probot.github.io/apps/sentiment-bot/)
- Untrivializer bot (https://probot.github.io/apps/untrivializer/)
- Refactoring-Bot ([https://github.com/Refactoring-Bot/Refactoring-Bot Refactoring-Bot]): provides refactoring based on static code analysis
- Looks good to me bot ([https://github.com/lgtmco/lgtm LGTM]) is a Semmle product that inspects pull requests on GitHub for code style and unsafe code practices.
Issues and threats
Software bots may not be well accepted by humans. A study from the University of Antwerp{{cite book|last1=Murgia|first1=Alessandro|last2=Janssens|first2=Daan|last3=Demeyer|first3=Serge|last4=Vasilescu|first4=Bogdan|title=Proceedings of the 2016 CHI Conference Extended Abstracts on Human Factors in Computing Systems |chapter=Among the Machines |year=2016|pages=1272–1279|doi=10.1145/2851581.2892311|isbn=9781450340823|s2cid=13026142}} has compared how developers active on Stack Overflow perceive answers generated by software bots. They find that developers perceive the quality of software bot-generated answers to be significantly worse if the identity of the software bot is made apparent. By contrast, answers from software bots with human-like identity were better received. In practice, when software bots are used on platforms like GitHub or Wikipedia, their username makes it clear that they are bots, e.g., DependaBot, RenovateBot, DatBot, SineBot.
Bots may be subject to special rules. For instance, the GitHub terms of service{{Cite web|url=https://help.github.com/en/github/site-policy/github-terms-of-service|title=GitHub Terms of Service - GitHub Help|website=help.github.com|access-date=2019-11-22}} does not allow 'bots' but accepts 'machine account', where a 'machine account' has two properties: 1) a human takes full responsibility of the bot's actions 2) it cannot create other accounts.
See also
References
{{Reflist}}