Event-based application hosting
Patent Information
- Application Number
- JP2023551802
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-02-26
- Filing Date
- 2021-09-24
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-09-24
AI Technical Summary
The deployment and hosting of event-based applications in group-based communication systems require significant software development experience and domain-specific knowledge, creating barriers to entry for users without specialized skills.
A user-friendly platform that enables the deployment and hosting of event-based applications in group-based communication systems, allowing users to build, run, and maintain applications without extensive programming knowledge through a non-code workflow builder interface and command line interface.
Facilitates the deployment and management of event-based applications in group-based communication systems, reducing barriers for users without specialized skills and enhancing the integration of external platforms with group-based communication systems.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] FIELD OF THE DISCLOSURE Embodiments of the present invention relate to hosting event-based applications, and more particularly, to enabling the deployment and hosting of event-based applications in conjunction with group-based communication systems. [Background technology]
[0002] Developing, deploying, and hosting event-based applications that operate in conjunction with a group-based communication system has traditionally required a significant amount of software development experience and domain-specific knowledge of application hosting. Such domain-specific knowledge includes knowledge of the programming interfaces of the group-based communication system applications, methods for deploying and hosting event-based applications, and the complexities associated with network connectivity between the group-based communication system and the application execution environment in which the event-based applications are deployed. As a result, building, running, and maintaining group-based communication system applications requires experienced software developers with group-based communication system knowledge in addition to knowledge of application deployment and hosting. This creates a significant barrier to entry for the associated development platforms.
[0003] What is needed is a user-friendly platform for enabling the deployment and hosting of event-based applications in the context of a group-based communication system that enables users with no domain-specific knowledge to deploy and host event-based applications in an application execution environment, thereby reducing the barrier to entry described above. Summary of the Invention
[0004]
[0009] Embodiments of the present invention address the above-identified problems by providing a platform for building, running, deploying, and maintaining event-based applications in association with one or more group-based communication systems. In particular, in a first embodiment, the present invention includes one or more non-transitory computer-readable media storing computer-executable instructions that, when executed by a processor, perform a method for hosting an application in association with a group-based communication system, the method including receiving from a development environment application instructions and application configuration parameters associated with the application corresponding to processing steps performed in response to a plurality of events, triggering execution of the computer-executable instructions based on metadata associated with the one or more events in response to detecting one or more events in a respective group-based communication system channel of the group-based communication system, and posting a message to the group-based communication system channel based on the response in response to the one or more events.
[0005] In a second embodiment, the invention includes a method for hosting an event-based application in association with a group-based communication system, the method including receiving application instructions and application configuration parameters associated with the application from a development environment corresponding to processing steps performed in response to a plurality of events, triggering execution of computer-executable instructions based on metadata associated with the one or more events in response to detecting one or more events in a group-based communication system channel of the group-based communication system, and posting a message to the group-based communication system channel based on the response in response to the one or more events.
[0006] In a third embodiment, the present invention includes a system having at least one processor and at least one non-transitory memory storing computer-executable instructions that, when executed by the processor, cause the system to perform actions including receiving application instructions and application configuration parameters associated with an application from a development environment, the application instructions and application configuration parameters corresponding to processing steps performed in response to a plurality of events; in response to detecting one or more events of the plurality of events in a group-based communication system channel of the group-based communication system, triggering execution of the computer-executable instructions based on metadata associated with the one or more events; and posting a message to the group-based communication system channel based on the response in response to the one or more events.
[0007] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Other aspects and advantages of the present invention will become apparent from the following Detailed Description of the Embodiments and the accompanying drawings. [Brief description of the drawings]
[0008] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will now be described in detail with reference to the accompanying drawings.
[0009] [Figure 1] 1 illustrates an exemplary hardware platform for a particular embodiment of the present invention. [Diagram 2] 1 illustrates components of a system for implementing an embodiment of the present invention. [Diagram 3] FIG. 1 shows a block diagram for implementing an embodiment of the present invention. [Figure 4] 1 illustrates components of a user interface for adding a workflow step in one specific embodiment of the present invention. [Figure 5A] 1 illustrates components of a user interface for configuring arguments to a function in one specific embodiment of the present invention. [Figure 5B] 1 illustrates components of a user interface for inserting variables associated with arguments to a function in a specific embodiment of the present invention. [Figure 6] FIG. 2 shows a data flow diagram for implementing an embodiment of the present invention. [Figure 7] 1 shows an exemplary flow chart for illustrating the operation of a method according to one embodiment of the present invention.
[0010] The drawings do not limit the invention to the specific embodiments shown and described herein. The drawings are not necessarily to scale, emphasis instead being placed upon clearly illustrating the principles of the invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] (Background and Concept of the Invention) The term "group-based communication system" as used herein refers to a collaborative communication system used within an organization. In some embodiments, the group-based communication system is a channel-based messaging platform. Within a group-based communication system, communications may be organized into "channels," each dedicated to a particular topic or set of users. Generally, a channel is a long-term, persistent discussion on a particular topic. Members of a particular channel may post messages that are visible to other members in that channel, along with other messages in that channel. A user may select a channel to browse in order to see only messages related to that channel's topic, without seeing messages posted in other channels on different topics. For example, a software development company may have different channels for each software product being developed, allowing developers working on a particular project to converse without having to bother (or be bothered by) developers working on other projects. Because channels are generally permanent and directed to a particular topic or group, users can quickly and easily refer to previous communications for reference.
[0012] Communication data in the group-based communication system may include messages, queries, files (e.g., documents, spreadsheets, computer code, images, video, audio, and / or electronic contact information), mentions, users or user profiles, interactions (e.g., reactions, edits, deletions, and / or prioritization such as by pinning or starring), tickets, channels, applications integrated into one or more channels, conversations (e.g., a group of messages segmented as a single unit), workspaces (e.g., a set of channels, users, projects, tasks within an organization that may have their own set of permissions and that, in some examples, may be organized substantially along the lines of an organizational chart), or other data generated by or shared among users of the group-based communication system that is associated with the communication data of an organization that uses the group-based communication system.
[0013] In some examples, the communication data may include data associated with the user, including, but not limited to, a user identifier, one or more communication channel identifiers associated with communication channels to which the user is authorized to access, one or more group identifiers for groups (or organizations, teams, entities, etc.) to which the user is associated, an indication of whether the user is an owner or administrator of any communication channels, an indication of whether the user has any communication channel restrictions, messages, emojis, conversations, conversation topics, avatars, email addresses, real names (e.g., Austin Author), usernames (e.g., austin_a), passwords, user preferences and / or settings, time zones, statuses, tokens, and other user-specific information. In some embodiments, the group-based communication system may additionally or alternatively store permission data associated with the permissions of individual users of the group-based communication system. In some embodiments, the permissions associated with individual users may be mapped to or otherwise associated with an account or profile associated with the user data. The permissions may indicate which users can directly communicate with other users, channels the user is authorized to access, individual channel restrictions, workspaces the user is authorized to access, individual workspace restrictions, etc. In some embodiments, authorization can support a group-based communication system by maintaining security to limit access to defined groups of users, in some such embodiments such users may be defined by common access credentials, group identifiers, or other criteria, as described above.
[0014] In some embodiments, the group-based communication system may be divided into different workspaces, which may be associated with different groups of users. Each workspace may be associated with a group identifier, and one or more user identifiers may be mapped to or otherwise associated with the group identifier. A user corresponding to such a user identifier may be referred to as a "member" of the group. A workspace may include one or more channels that are specific to that workspace and / or one or more channels that are shared among one or more workspaces. In some embodiments, a workspace may be associated with one or more organization identifiers, which may be associated with an organization or other entity associated with the group-based communication system. In some embodiments, such data may be mapped to or otherwise associated with other types of data (e.g., user data, permission data, or channel data).
[0015] To extend the functionality of the group-based communication system, event-based applications are developed to integrate group-based communication system functionality with external platforms. In some embodiments, an event-driven application development and hosting platform is provided. Application developers write code to build and host applications in association with the group-based communication system. In some embodiments, a command line interface is provided for developers to rapidly create cloud-based event-driven applications, which are then deployed to an application execution environment associated with the group-based communication system.
[0016] In some embodiments, the event-driven application development and hosting platform can be utilized in conjunction with a workflow construction user interface to build event-based applications without the need to write program code. In such embodiments, event-based applications can be built by users who understand workflows but are untrained or otherwise unwilling to write code. In other embodiments, aspects of the event-driven application development and hosting platform are provided to trained software developers, who implement event-based applications by writing code to implement application logic.
[0017] In some embodiments, a set of application development tools is provided in the form of a command line interface (CLI). The CLI provides functionality to authenticate a developer's identity to an application development platform. In one embodiment, a developer invokes the CLI with a "whoami" parameter to determine if the developer has been previously authenticated. If the developer has been previously authenticated as a particular user, the CLI with the "whoami" parameter returns the already authenticated username. If the developer has not been previously authenticated, the CLI may provide an error message that the CLI session has not been authenticated.
[0018] The developer can then invoke the CLI with the "login" parameter to provide authentication information or the "logout" parameter to log out of the CLI session. In this embodiment, when the developer invokes the CLI with the "login" parameter, the CLI generates a command that can be cut and pasted to be executed in an authenticated session of the group-based communication system. The generated command includes a ticket, which contains a unique random number represented as a hexadecimal string that is only valid for a few minutes. When the developer pastes the generated command into an authenticated client interface of the group-based communication system, an authentication token is generated that is used to authenticate the hosted application for both deployment and execution.
[0019] Once a developer is authenticated, the developer can build a project from scratch, check out a project from a source code repository, or use the CLI to create a predefined project skeleton. The predefined project skeletons are based on patterns for different types or categories of applications that a developer may need to build. In some embodiments, a set of predefined project skeletons is made available via the CLI by the application development platform provider. A developer can initiate commands via the CLI to build a skeleton app that corresponds to the general type of app the developer is trying to build. From there, the developer can edit and extend the skeleton app to build specific functionality specified by the requirements of the application the developer is working on.
[0020] In one embodiment, to initialize a new, empty project, a developer invokes the CLI with the "new" parameter. This creates the most basic application framework with a minimally initialized configuration file and a set of source code files with example code that, in some embodiments, is commented out. In some embodiments, the development environment is Node.js and the configuration files are provided in a human-readable data serialization language format, such as YAML. In some other embodiments, an alternative programming language, such as Python or Golang, is provided.
[0021] Once a developer has edited configuration files and added and / or updated code in source code files, the developer may deploy and run the application in an event-based application hosting environment. In some embodiments, the developer may invoke the CLI with the CLI parameter "deploy" to deploy the application to an application execution environment associated with the hosting environment. In some embodiments, the developer may view a log associated with the CLI by invoking the CLI with the parameter "activity". In some embodiments, the chronologically most recent portion of the log may be viewed in association with the CLI parameter "activity--tail". Once deployed, the application functionality is operational in a group-based communication system user interface that corresponds to the group-based communication system associated with the run-time environment in which the application was deployed. In some embodiments, the application may be undeployed or deleted from the execution environment using the CLI parameter "delete". In this embodiment, the parameter "delete" does not delete the configuration and source code from the developer's development environment, but rather undeploys the application from the application execution environment.
[0022] Such deployed applications may implement group-based communication system application functions or may call group-based communication system application functions associated with other deployed applications. In some embodiments, such application functions are atomic pieces of application logic that can be reused. Broadly speaking, a function includes application logic for defining inputs, outputs, and generating the outputs from the inputs. In some cases, a function further performs certain specified functions (also called "side effects") in addition to generating the outputs. For example, a function post_message() may have inputs including a message, a channel identifier, and a user identifier. The function application logic has a side effect of posting a provided message, attributed to an indicated user, on an indicated channel, with return values of "success" and "failure" indicating whether the message was successfully posted.
[0023] In general, a function receives inputs and generates either an error or an output in response to these inputs. The inputs may include any of one or more arguments of the function, the name of the function, and other suitable information used to implement the function. An error may be generated in response to a failure of the function. For example, if a required argument is not provided in the input, the function may fail and generate an error. The error may be returned to the group-based communication system server and displayed as an error message on a client device associated with the group-based communication system. Alternatively, an output may be generated by a function in response to successful execution of the function. In some embodiments, the output (and / or error) may generate a success event (or a failure event in the case of an error) on an event channel of the group-based communication system, allowing a user or automated process to obtain the result. As described below, this also allows functions to be configured by having an event on the event channel act as a trigger condition for another function.
[0024] Alternatively, or additionally, in some examples, either the output or the error may be sent directly to the subsequent function as an input argument of the subsequent function. In some embodiments, the input may be received as an argument to the function. Additionally, the input may be received from the group-based communication system as message or event information. In some embodiments, the undercurrent of data may be associated with a particular channel of the group-based communication system. The undercurrent of data includes various information associated with the group-based communication channel, such as, for example, metadata of messages posted in the channel, user information associated with users added to the channel, and channel information such as the channel name and channel parameters. Thus, any of the information from the undercurrent of data may be sent as an argument of the function. For example, the user name and the time of the message may be used as arguments of the function indicating which user sent the message and the time the message was sent. For example, a function is contemplated that identifies the last user to post a message in a channel.
[0025] In some embodiments, it may be desirable to utilize existing resources associated with a group-based communication channel for a function. For example, channel-related information and features such as access control, data scoping, subscriptions, application programming interfaces (APIs), data loss prevention integration, encryption key management, and international data residency integration may be invoked by the function to provide arguments or trigger events to initiate the function. Thus, an existing group-based communication channel may be used as an event channel for a function, and an event in the channel may trigger a function, such as sending a message, adding a user, or reacting to a message. In some embodiments, any content published to a group-based communication channel may be used to trigger and provide arguments to the function.
[0026] In some embodiments, events are published as event messages in channels of a group-based communication system, with each event message including metadata describing the event. Thus, functions can be triggered based on events in a channel as well as when an event message is reacted to or commented upon. In some such embodiments, it may be desirable to publish the event message so that metadata associated with the event message can be used to initiate and provide information to the function. Alternatively, in some embodiments, it may not be desirable to publish all events as event messages in a channel, as doing so could result in users receiving excessive, unnecessary information. Thus, event messages may be filtered such that only certain types of events are published as event messages. Alternatively, event messages may be published to the data undercurrent for the channel without being visible to users in the channel.
[0027] In some embodiments, the function is an object in the context of the group-based communication system, such as an object in an object-oriented programming environment. Thus, the function may be stored in a memory, such as a group-based communication system data store, and associated with an identifier used to identify the function. Furthermore, in some embodiments, the function may be authenticated by either the group-based communication system or the external application. In some embodiments, the function may be authenticated in one authentication step that satisfies the authentication requirements of each of the group-based communication system and the external application. Furthermore, the function may be authenticated together with the user that initiated the function. Thus, embodiments are contemplated in which a user is authenticated by the group-based communication system and does not need to take further action to be authenticated by the associated external application. Here, information regarding the user authentication may be sent as an argument to the function, for example, via a bearer token. Thus, if the user is authenticated within the group-based communication system, the user can run the function in conjunction with the external application. Built-in functions are extensions of the core functionality of the group-based communication system and are standard interfaces to the core API of the group-based communication system.
[0028] In some embodiments, a workflow builder user interface is provided to allow users of the group-based communication system to build and extend event-based applications without writing code. The workflow builder user interface can be used to automate processes into automated workflows in the group-based communication system. Workflows can be of any complexity and can be integrated with third party applications and services. In the context of workflows, a trigger is what starts a workflow. A trigger may be automatically generated in response to any event in the group-based communication system that matches pre-specified conditions. A trigger may be manually initiated, for example, by a user of the group-based communication system interacting with a shortcut menu that launches a workflow when selected. In some embodiments, the shortcut menu may be accessed from a menu of a group-based communication system channel.
[0029] A workflow may incorporate workflow steps. A workflow step is a unit of execution that performs an action such as sending a group-based communication system message or presenting a custom form user interface component to a user of the group-based communication system. Execution logic corresponding to a workflow step may be exposed from within the group-based communication system application to allow integration of a particular workflow with external systems (e.g., via an API). When a workflow construction user inserts a step, the workflow construction user may configure one or more parameters to pass information entered by an end user of the workflow. The workflow construction user may employ a configuration modal dialog box to configure such actions within the workflow. The configuration modal dialog box includes a set of fields. Each field in the configuration modal dialog box allows the workflow construction user to define the source of input data that the workflow consumes as input. In some embodiments, the workflow construction user may insert variables enclosed in double brackets "{{variables}}" into plain text fields to auto-populate output data from a previous workflow step.
[0030] In some embodiments, row-based and column-based objects are provided for persisting data in association with an event-based application consistent with the present invention. In these embodiments, metadata associated with a data dictionary corresponding to the persisted data may be provided in a configuration file for the event-based application. In an exemplary embodiment, a table name is provided in a YAML configuration file, followed by a list of columns with column names and standard data types corresponding to each of the columns. In some embodiments, the standard data types include: (i) a type "id" that is a string that uniquely represents a particular row in the persisted data; (ii) a type "text" that corresponds to a UTF-8 encoded string of any length; (iii) a type "user" that corresponds to a uniquely defined user identifier corresponding to a user of the group-based communication system; (iv) a type "channel" that corresponds to a channel of the group-based communication system; (v) a type "date" that takes the form of an ISO8601 formatted string; and (vi) a type "number" that corresponds to an integer or floating point number.
[0031] In some embodiments, data may be persisted and queried in association with the data persistence service by making API calls to APIs provided in association with code provided in an initial skeleton application provided by the application development platform. The data persistence API may include the methods described below, which in some embodiments have the prefix "apps.hosted.tables". One method, named "putRow", may be called to create or update a row when providing an object mapping to table and column name values. If no row exists with an "id" value that corresponds to the "id" in the provided object mapping, a new row may be created. If a row with a corresponding "id" value already exists in persistent storage, the row with that "id" is updated according to the values contained in the remainder of the object mapping.
[0032] Another method, "getRow," may be called to get a single row given the table name and the "id" that corresponds to the row to be retrieved. Yet another method that may be provided is "deleteRow," which deletes a single row given the table name and row "id." Yet another method is "query," which may be called to query a particular table and return a certain number of rows. The query expression may be any type of query term that may be used to query a database, such as query terms that may be used to query SQL or NoSQL type databases. In some embodiments, there are user interface components to interact with and manage the data maintained in the above methods.
[0033] Various categories of users and organizations interact with the exemplary event-driven application and associated application development, deployment, and hosting environment in several ways. The various types of users and organizations include, but are not limited to, (i) end users of the group-based communication system, (ii) workflow users associated with the group-based communication system and using pre-built workflows, (iii) workflow construction users who build workflows to perform automated functions within the group-based communication system, (iv) users who customize the group-based communication system functions and configure associated triggers, (v) subscribing organizations of the group-based configuration system that develop event-based applications via the group-based communication system functions to support automations required by subscribing organizations, and (vi) partner organizations that develop event-based applications and integrations that operate in conjunction with the group-based communication system.
[0034] As a non-limiting example, a group-based communication system end user in the course of using the group-based communication system may use a group-based communication system channel with interactivity to provide feedback on a particular product. In doing so, the end user may want to create a similar flow of feedback for other end users and other products. Using the group-based communication system, the end user may look for ways to copy or use the same or similar workflows. In this capacity, the end user may become a workflow user and want to customize an existing workflow. Within the client interface of the group-based communication system, the end user who has become a workflow user begins the process of customizing an existing workflow. The workflow user adds a solution based on the existing workflow and customizes the new solution. The workflow user may then add the customized solution to a particular group-based communication system channel. The workflow user may then send a message in the channel to inform channel members about the new solution. The channel members may provide comments on the new solution, and based on those comments, the workflow user may update the workflow solution configuration, for example, by updating a question in a feedback form associated with the solution.
[0035] In another example, while using the group-based communication system, a workflow user may have a direct requirement to have a way for the workflow user's team to review contracts. In this example, the workflow user may refer to available workflows to determine whether an existing workflow can be configured to allow the team to use it to review contracts. If an existing workflow can be simply configured to allow this, the workflow user may configure and add a solution as described above. Alternatively, the workflow user may determine that no existing workflow exists to meet the needs of contract review. At this point, the workflow user may decide to build an appropriate workflow, and the workflow user assumes the role of a workflow construction user. In this case, the workflow construction user opens the workflow builder user interface and begins the process of creating a new workflow. In some embodiments, not all users have the authority to create new workflows, and an administrative user of the group-based communication system may need to grant permission to the workflow construction user to create a new workflow.
[0036] When a workflow construction user begins the process of creating a new workflow in Workflow Builder, the workflow construction user may refer to the workflow templates to determine whether there is an existing workflow template to use as a basis for building the new workflow. If a template exists, the workflow construction user may open the template and add, modify, or delete workflow steps and define required inputs. If a template does not exist, the workflow construction user may choose to build the workflow from scratch by adding workflow steps as necessary and defining required inputs. In either case, the workflow construction user should test the newly created workflow by running it and observing its execution based on a set of test inputs. Finally, depending on the administrative configuration, the workflow construction user may choose to publish the workflow for some or all users of the group-based communication system to use.
[0037] As a third example, a power user of the group-based communication system may encounter a need to initiate a technical support incident in a support ticket tracking system if the error rate on a supported technology platform exceeds a certain error rate threshold. One option for the power user is for the power user to browse available workflows and add a solution if such a solution already exists in the group-based communication system. As discussed above, this may involve simply customizing a workflow as a workflow user, or it may involve building a workflow from scratch or based on a workflow template. If no such workflow functionality exists, the power user may determine that they need to write code to implement a new event-based application.
[0038] In this case, the power user views the group-based communication system functions either in a workflow browser or a function browser or other source of function description documents. The function description documents should provide the names of the functions and descriptions of the inputs and outputs so that the power user, acting as a software developer writing code, can write software code to access the group-based communication system functions. In some embodiments, using a function browser user interface associated with the group-based communication system, the power user identifies a function entitled "Start Incident" that appears to provide the functionality necessary to initiate a technical support incident that matches the power user's requirements. In some embodiments, using the function browser user interface, the power user selects an option that allows the power user to request permission to build an application using the identified function. In this embodiment, an administrative user reviews the request and determines whether to grant the power user's permission to build such an application.
[0039] If permission to build the application is granted, the power user assumes the role of a developer and initializes a new application skeleton within the application development environment using the CLI as described above. The developer then determines whether an existing trigger can be leveraged. If an existing trigger is not appropriate, the developer creates a new trigger. In an example of initiating a support incident when an error rate of a supported technology platform exceeds a certain error rate threshold, the trigger can be the occurrence of an error rate above a predefined error rate. The developer then configures the application and writes the necessary code to invoke the function. In some embodiments, the developer iteratively writes the code and optionally tests the application locally within the development environment. When the developer is ready to test the application in the hosted application execution environment, the developer may use the CLI to deploy the application to the application execution environment. Once the application is deployed, the developer may create an associated workflow that connects the trigger to a function within the deployed application. The developer may then configure the associated trigger (e.g., set the error threshold). In this example, the support incident is automatically initiated when the application is enabled and errors exceed the set threshold.
[0040] Within an organization using the group-based communication system, a requirement to manage different types of incidents may arise. For example, physical security, emergency situations, engineering support issues, and change requests may all be separately managed incidents. An organization user may search the available functions from the third-party partner to the operator of the group-based communication system to determine if there are functions available from a third party that provide integration with the incident management system (or incident management systems) used by the organization. In some cases, existing applications exist in the published application directory. In this case, the organization user can refer to the functions and other published documentation about the functions published by the published application. The organization user may need to obtain the necessary permissions to initiate a new application or otherwise create workflows and configure triggers as described above. In this case, once permission is granted, the organization user can configure the group-based communication system to use the third-party published application to integrate with the incident management system according to the organization's requirements.
[0041] On the other hand, if no suitable third-party partner integration exists, the developer may choose to implement the integration directly. In this example, the developer requests administrator permission to build an application that implements a new function to perform the integration. In this embodiment, the administrative user reviews the request and determines whether to grant the developer permission to build such an application that implements the specified function.
[0042] If permission to build an application is granted, within the application development environment, the developer initializes a new application skeleton using the CLI as described above. Next, in this example, the developer creates an "Alert User" function that contacts the notified user until the notified user acknowledges the incident or the incident times out. In this example, the developer also creates a "Start Incident" function. The developer then creates a new configurable trigger and deploys the application to the hosted application execution environment. In some embodiments, the developer may configure the developed group-based communication system functions to be reusable (given appropriate permissions) within the developer's organization.
[0043] Finally, a third-party partner of the operator of the group-based communication system may wish to drive adoption of the partner's platform by the existing user base of users of the group-based communication system. To drive such platform adoption, the partner may choose to develop and maintain an event-based application hosted by the operator of the group-based communication system. The partner may receive requests from its customers to utilize the partner's platform from a client interface of the group-based communication system. For example, in the case of a partner that is a provider of an incident management system, the partner may have a requirement that its customers want to trigger, escalate, and resolve incidents from a client interface of the group-based communication system.
[0044] In this example, a partner developer creates an application that is an official partner branded application to provide integration with the partner's application and / or platform. A partner user creates configuration steps to authenticate the group-based communication system to the partner's application and / or platform. The partner developer then creates configuration steps to map specific group-based communication channels to components of the application, such as, in this example, groups of users to be notified about support incidents. The partner developer then creates an integration function that implements the integration with the partner's application and / or platform, for example, using an API exposed by the partner's application and / or platform. In some embodiments, the function is hosted by the group-based communication system operator. In some other embodiments, the integration function is hosted remotely, for example, in connection with a public or private cloud platform or in a data center maintained by the partner. In some embodiments, the partner developer configures the function to be publicly reusable and publishes it to a public or private application directory.
[0045] A rich set of management capabilities would be advantageous to protect access to sensitive information associated with event-based applications running in connection with the group-based communication system. Hosted applications and corresponding capabilities that may be utilized by a broader set of users raise potential data governance concerns, as providing additional data access and other capabilities would increase the complexity of the overall group-based communication system, thereby raising potential issues regarding data security and compliance.
[0046] In some embodiments, an administrative user of the group-based communication system can manage roles corresponding to groups of users that are permitted to develop, deploy, configure, modify, and use applications hosted in association with the group-based communication system. The administrative user may specify which users can host applications in association with a particular organization's group-based communication system. The administrative user allows a group or groups of users to develop and deploy hosted applications in a secure sandbox environment without concern for data moving outside the organization's boundaries. In some embodiments, the test data associated with the sandbox environment is random data or data that is otherwise sanitized and de-identified to personally identifiable or other sensitive information. The administrative user can grant permission to a group or groups of "trusted" users to deploy hosted applications that can communicate with systems outside the group-based communication system, such as the organization's internal on-premise enterprise applications, or other third-party external systems. Additionally, the administrative user himself can assign a group or groups of users to be application hosting and / or application development platform administrators.
[0047] To control data egress, an administrative user can control which applications have the ability to call external APIs to various destinations. These destinations include a particular organization's internal systems, on-premise systems, and other third-party external systems. An administrative user can specify a list of group-based communication system OAuth scopes that are permitted for use with a particular organization's hosted applications. An administrative user can restrict where a particular organization's hosted functions and / or triggers can be made available to external organizations. An administrative user can restrict which group-based communication system workspaces within a particular organization can access a particular hosted application. In some embodiments, an administrative user can define required fields and values in the application configuration metadata of a hosted application to ensure that access control measures are not circumvented. For various types of hosted applications, an administrative user can select whether a particular hosted application should undergo validation before the hosted application is deployed.
[0048] Administrative users may have the ability to visualize and monitor the number and type of hosted applications, functions, and / or triggers that a particular organization is hosting, as well as the respective owners and / or collaborators that have access and permissions to a particular application, function, and / or trigger. Administrative users may audit the external functions and / or triggers that an organization is using, as well as log data regarding input, output, and status. Administrative users may detect and audit configuration changes to a particular organization's hosted applications. Administrative users may investigate resource consumption and understand the hosting costs of a particular hosted application. Administrative users may monitor the usage and associated resource consumption of each hosted application and / or function. Administrative users may restrict whether a particular organization's triggers are called from a particular webhook. Administrative users may audit the external endpoints that a particular organization's applications, functions, and / or triggers are called on. Administrative users may audit the core group based communication system API endpoints that a particular organization's functions are called on. Administrative users may detect and audit changes to hosting roles and permissions. Administrative users may access the source code on which a particular hosted application is based, as well as the change history of each source code control. Data governance principles apply to data storage practices that comply with a particular organization's compliance standards, such as enterprise key management and international data residency.
[0049] An administrative user may grant a specific role to a hosting developer. Such a role corresponds to a set of features that a particular developer may incorporate into the developer's hosted applications, functions, and / or triggers. In some embodiments, an administrative user may create new hosting permission roles and specify fine-grained feature availability for the new hosting permission roles. In one embodiment, three roles are provided: Basic, Basic Plus Storage, and Trusted. The Basic hosting permission role does not allow data storage. Applications assigned to the Basic role (Basic Application) may call built-in group-based communication system functions and group-based communication system features hosted by the same organization. The Basic role cannot call external APIs. Functions implemented and exposed in applications assigned to the Basic role may be called by group-based communication system workflows and functions of other group-based communication systems hosted by the same organization. The Basic application itself may not be called by group-based communication system functions owned by external organizations, and functions associated with the Basic application may not be called by webhooks implemented by the Basic application. Applications assigned to the Basic Plus Storage role have the same characteristics as the Basic application, except that they can store data. Applications assigned to trusted roles (trusted applications) can store and call data and be invoked in the same way as basic applications. Additionally, trusted applications may call external APIs. Trusted applications may be invoked by functions of a group-based communication system owned by an external organization (which implements the necessary authentication and authorization). Functions associated with trusted applications may be invoked by webhooks implemented by the trusted application.
[0050] In some embodiments, when a developer attempts to deploy an application with an unauthorized feature due to role-based authorization constraints configured in the application development environment or other implemented organizational rules, an error may be returned to the developer and the application may not be deployed. In some embodiments, the base application may call functions exposed by the trusted application. In this embodiment, the base application must provide any authentication credentials, such as a bearer token, that the trusted application may require.
[0051] The subject matter of the present invention is described in detail below to meet statutory requirements, but the description itself is not intended to limit the scope of the claims. Rather, the claimed subject matter may be embodied in other ways to include different steps or combinations of steps similar to those described in this document, in conjunction with other current or future technologies. Slight variations from the following description are understood by those skilled in the art and are intended to be captured within the scope of the claimed invention. The terms should not be construed as implying a particular order of the various steps described, unless the order of the individual steps is explicitly described.
[0052] The following detailed description of the embodiments of the present invention refers to the accompanying drawings, which show specific embodiments in which the invention may be practiced. These embodiments are intended to describe aspects of the present invention in sufficient detail to enable those skilled in the art to practice the invention. Other embodiments may be utilized, and changes may be made, without departing from the scope of the present invention. Therefore, the following detailed description is not to be taken in a limiting sense. The scope of the embodiments of the present invention is defined only by the appended claims, including the full scope of equivalents to which such claims are entitled.
[0053] In this description, reference to "one embodiment," "one embodiment," or "embodiments" means that the referenced feature or features are included in at least one embodiment of the technology. Separate references to "one embodiment," "one embodiment," or "embodiments" in this description do not necessarily refer to the same embodiment, nor are they mutually exclusive, unless so stated and / or readily apparent to one of ordinary skill in the art from the description. For example, a feature, structure, or operation described in one embodiment may, but is not necessarily, included in other embodiments. Thus, the technology can include various combinations and / or integrations of the embodiments described herein.
[0054] (Operating Environment for an Embodiment of the Invention) Referring first to FIG. 1, an exemplary hardware platform for certain embodiments of the present invention is shown. The computer 102 can be a desktop computer, a laptop computer, a server computer, a mobile device such as a smartphone or tablet, or any other form factor of a general purpose or special purpose computing device. The computer 102 has several components shown for illustrative purposes. In some embodiments, certain components may be located differently or may not be present. Additional components may be present. The computer 102 includes a system bus 104 that allows other components of the computer 102 to communicate with each other. In certain embodiments, multiple buses or components may communicate directly with each other. A central processing unit (CPU) 106 is connected to the system bus 104. Also connected to the system bus 104 are one or more random access memory (RAM) modules 108. Also connected to the system bus 104 is a graphics card 110. In some embodiments, the graphics card 110 may not be a physically separate card, but rather may be integrated into the motherboard or CPU 106. In some embodiments, the graphics card 110 has a separate graphics processing unit (GPU) 112, which can be used for graphics processing or general purpose computing (GPGPU). There is also GPU memory 114 on the graphics card 110. A display 116 is connected (directly or indirectly) to the graphics card 110 for user interaction. In some embodiments, there is no display, while in other embodiments, a display is integrated into the computer 102. Similarly, peripherals such as a keyboard 118 and a mouse 120 are connected to the system bus 104. As with the display 116, these peripherals may or may not be integrated into the computer 102.Also connected to the system bus 104 is local storage 122, which may be any form of computer readable media and may be internally installed in computer 102 or externally, removably attached.
[0055] Computer-readable media includes both volatile and non-volatile media, both removable and non-removable media, and contemplates media that can be read by a database. For example, computer-readable media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVDs), holographic media or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage, and other magnetic storage devices. These technologies can store data either temporarily or permanently. However, unless otherwise specified, the term "computer-readable media" should not be interpreted to include forms of physical but transitory signal transmission, such as radio broadcasts, electrical signals over wires, or light pulses over fiber optic cables. Examples of stored information include computer-usable instructions, data structures, program modules, and other data representations.
[0056] Finally, a network interface card (NIC) 124 is also connected to the system bus 104, thereby enabling the computer 102 to communicate over a network, such as network 126. The NIC 124 may be any form of network interface known in the art, such as Ethernet, ATM, fiber, Bluetooth, or Wi-Fi (i.e., the Institute of Electrical and Electronics Engineers (IEEE) 802.11 family of standards). The NIC 124 connects the computer 102 to a local network 126, which may also include one or more other computers, such as computer 128, and network storage, such as data store 130. In general, a data store, such as data store 130, may be any repository where information can be stored and retrieved as needed. Examples of data stores include relational or object-oriented databases, spreadsheets, file systems, flat files, directory services such as LDAP and Active Directory, email storage systems, and the like. A data store may be accessible via a complex API (e.g., a structured query language, etc.), a simple API that provides only read, write, and search operations, or any level of complexity in between. Some data stores may further provide management functions for the data sets stored therein, such as backup or versioning. A data store may be local to a single computer, such as computer 128, accessible over a local network, such as local network 126, or remotely accessible over the public Internet 132. Local network 126 is in turn connected to the public Internet 132, which connects many networks, such as local network 126, remote network 134, or directly connected computers, such as computer 136. In some embodiments, computer 102 itself may be directly connected to the public Internet 132.
[0057] Turning now to FIG. 2, an exemplary diagram illustrating components of a system for implementing an embodiment of the present invention is shown and generally referred to by reference number 200. System 200 provides a platform for building, deploying, running, monitoring, and maintaining event-based applications. System 200 includes any number of client devices, such as group-based communication system client devices 204, mobile client devices 206, and developer client devices 202. Individual users may connect to the components of system 200 using a single client device or multiple client devices, either simultaneously or sequentially. Similarly, in some embodiments, multiple users may share a single client device (simultaneously or sequentially) to access the group-based communication system. As shown in FIG. 2, the client devices may be any form of computing device as described above with respect to FIG. 1. In particular, users may access the components of system 200 using desktop, laptop, or mobile devices. The components of system 200 may be accessible via dedicated software on the particular client device or via a web browser associated with the client device. In some embodiments, developers and application hosting system administrators may access administration functions via any client device. In other embodiments, the management functions may be accessible only from a limited subset of client devices (e.g., only via developer client devices 202). In some embodiments, group-based communication system 212 is a channel-based messaging platform that may host multiple group-based communication system servers and group-based communication data stores, such as group-based communication system server 210 and group-based communication data store 208.
[0058] In some embodiments, the group-based communication system 212 provides services in association with a group-based communication system server 210. The group-based communication system server 210 may be a dedicated server, a shared server, a virtual machine instance in a cloud computing environment, or any other form of computing device as described above with respect to FIG. 1. Although a single group-based communication system server 210 is shown, embodiments having multiple such group-based communication system servers are contemplated to provide scale, redundancy, and / or isolation between different instances of the group-based communication system. For example, for security reasons, a software development company may not want to host its group-based communication system on the same server as a competitor's group-based communication system.
[0059] Cloud service provider 214 represents an on-demand cloud computing platform that provides data storage and computing resources in the form of dedicated servers, shared servers, virtual machine instances in a cloud computing environment, or any other form of computing device as described above with respect to FIG. 1. Cloud service provider 214 may provide software as a service (SaaS), infrastructure as a service (IaaS), or platform as a service (PaaS), including serverless execution in an event-driven serverless execution environment. The serverless execution environment may enable deployment of application containers built for a particular execution environment. In general, an application container is an isolated instance of a particular application that includes application code, application configuration resources, and certain associated libraries and application dependencies that enable rapid and independent deployment of the application.
[0060] The server 210 is communicatively coupled to the client devices 202, 204, and 206, and the cloud service provider 214 via a network 216. The network 216 may be a local area network (LAN), a wide area network (WAN), a virtual private network (VPN), or the Internet. In general, any type of network is contemplated for providing communication between the various components of the system 200. The group-based communication system server 210 may provide web server functionality to enable web-based clients and non-web server functionality to enable clients using specialized applications. Alternatively, both the web-based clients and the specialized application clients may use a single web server, or the web server may be a gateway providing web-based access to the specialized application server. Other techniques for enabling communication between various types of client applications are also contemplated.
[0061] The group-based communication system data store 208 is communicatively connected to the group-based communication system server 210. As illustrated, the group-based communication system data store 208 is directly connected to the group-based communication system server 210, although any form of communication connection (e.g., network-attached storage (NAS), network file system (NFS), or cloud-based storage) may be employed. Broadly speaking, the group-based communication system data store 208 stores all of the durable information used by the group-based communication system server 210. For example, the group-based communication system data store 208 may store all of the messages along with their associated channels, documents and images uploaded to a particular channel, channel membership information, and / or user information. As previously mentioned, multiple group-based communication system servers may be present in the system 200. In such an embodiment, each group-based communication system server may have its own copy of the group-based communication system data store 208. Alternatively, multiple group-based communication system servers may share a single networked group-based communication system data store. Alternatively, or additionally, in any of these embodiments, the data may be split across multiple group-based communication system data stores.
[0062] Referring now to FIG. 3, a block diagram for implementing embodiments of the present invention is shown and generally referred to by reference number 300. In various embodiments, a trigger 302 is configured to trigger the execution of a function 320. The trigger initiates the execution of an application and may take the form of a schedule 304, a webhook 306, a shortcut 308, or a slash command 310. In some embodiments, the schedule 304 operates like a timer such that periodic firing of the trigger may be scheduled. In some embodiments, an end user of an event-based application sets an arbitrary schedule for firing of the trigger, such as once an hour or at 9:15am every day. Additionally, the trigger 302 may take the form of a webhook 306. The webhook 306 is a software component that listens on a webhook URL and port. In some embodiments, the trigger fires when a proper HTTP request is received on the webhook URL and port. In some embodiments, the webhook 306 requires proper authentication, such as by a bearer token. In some embodiments, the payload associated with a particular webhook call includes information that is processed by the webhook before firing any triggers. In some embodiments, one of the triggers 302 fires each time a webhook 306 is called, and some or all of the payload associated with the particular webhook call is passed to one or more of the functions 320. In some other embodiments, the trigger depends on the payload content.
[0063] Another source of one of the triggers 302 is a shortcut in shortcuts 308 associated with the group-based communication system. In some embodiments, the shortcuts 308 are global to the group-based communication system or specific to a group-based communication system channel. A global shortcut is not specific to a group-based communication system channel or workspace. A global shortcut may be initiated from a shortcut button in a group-based communication message composer or from within a search interface associated with a group-based communication system client interface. A global shortcut may trigger a function that can be performed without the context of a particular group-based communication system message or group-based communication channel. In contrast, a message-based or channel-based shortcut is specific to a group-based communication system message or channel and operates within the context of a particular group-based communication system message or group-based communication channel.
[0064] A further source of one of the triggers 302 may be provided by a slash command 310. The slash command 310 may serve as an entry point for a group-based communication system function, integration with an external service, or a group-based communication system message response. In some embodiments, the slash command 310 may be entered by a user of the group-based communication system to trigger the execution of a particular application function. A particular slash command may be entered by a user of the group-based communication system directly into a user input component normally used to enter group-based communication system messages. In some embodiments, the slash command 310 is distinguishable from a group-based communication system message in that it is preceded by a forward slash (" / "). The slash command may be followed by slash command line parameters that may be passed along to any group-based communication system function that is invoked in conjunction with the triggering of the group-based communication system function, such as one of the functions 320.
[0065] An additional source of triggering a function is when an event (such as event 312) matches one or more conditions predefined in a subscription (such as subscription 318). Event 312 may be subscribed to by any number of subscriptions 318, with each subscription specifying different conditions and triggering a different function. In some embodiments, the event is a group-based communication system message received on one or more group-based communication system channels. Application event 314 may be a group-based communication system message with associated metadata created by an application in the group-based communication system channel. Event 312 may also be a direct message received by one or more group-based communication system users, which may be actual users or technical users such as bots. Bots are technical users of the group-based communication system used to automate tasks. Bots may be programmatically controlled to perform a variety of functions. Bots may monitor and assist in processing group-based communication system channel activity as well as post messages to group-based communication system channels and react to activity in members' channels. Bots may have a name, profile, and profile picture associated with the group-based communication system. Bots may be referenced in group-based communication system messages and sent direct messages, and bots may be able to post messages, upload files, and be invited and removed from both public and private channels in the group-based communication system.
[0066] Events 312 may also be any events associated with the group-based communication system. Such group-based communication system events 316 include events related to the creation, modification, or deletion of a user account in the group-based communication system, events related to messages in a group-based communication system channel (such as creating a message, editing or deleting a message, or reacting to a message). Events 312 may also be related to the creation, modification, or deletion of a group-based communication system channel, or membership in a channel. Events 312 may also be related to modifying a user profile or creating a group, maintaining members, or deleting a group. Events 312 may also be triggered by changes detected by a third-party integration, such as, for example, a change in the status of a ticket in a third-party incident management system.
[0067] As discussed above, subscriptions 318 indicate one or more conditions that, when matched by an event, trigger a function. In some embodiments, a set of event subscriptions is maintained in association with the group-based communication system such that when an event occurs, information about the event is matched against the set of subscriptions to determine which, if any, of the functions 320 should be invoked. In some embodiments, the events to which a particular application may subscribe are managed by an authorization framework. In one embodiment, the event types matched against subscriptions are managed by OAuth authorization scopes, which may be maintained by an administrator of a particular group-based communication system.
[0068] The functions 320 triggered by the triggers 302 and subscribed events 312 may be provided in a variety of forms. First, there are group-based communication system "built-ins" 322 associated with the core functionality of a particular group-based communication system. Some examples include creating a group-based communication system user or channel. Next, there are group-based communication system user builder "no code" functions 324 that may be developed by a user of the group-based communication system user in association with a workflow builder user interface as described above. Finally, there are code "hosted" 326 functions implemented by the group-based communication system application that are developed as software code in association with a software development environment.
[0069] These various types of functions 320 may then be integrated with APIs 328. In some embodiments, the APIs 328 are associated with third-party services that the functions 320 employ to provide custom integration between a particular third-party service and the group-based communication system. Examples of third-party service integrations include video conferencing, sales, marketing, customer service, project management, and engineering application integration. In such an example, one of the triggers 302 may be a slash command 310 that is used to trigger a code "hosted" function 326 that makes an API call to a third-party video conferencing provider via one of the integrated APIs 328. As shown in FIG. 3, the API 328 itself may also be the source of one or more triggers 302 or events 312. In this example, a successful completion of the video conference triggers one of the functions 320 that sends a message that initiates a further API call to the third-party video conferencing provider to download and archive the video conference recording and store it in a group-based communication system channel.
[0070] In addition to integrating with the API 328, the function 320 may persist and access data in the table 330. In some embodiments, the table 330 is implemented in association with a database environment associated with the serverless execution environment in which the particular event-based application is running. In one embodiment, the table 330 may be provided in association with a relational database environment. In other embodiments, the table 330 is provided in association with a database mechanism that does not employ relational database technology. As shown in FIG. 3, in some embodiments, a read or write of certain data to one or more of the tables 330, or data in a table that matches a predefined condition, is itself the source of one or more triggers 302 or events 312. For example, if the table 330 is used to maintain ticketing data in an incident management system, a count of open tickets exceeding a predetermined threshold may trigger a message being posted to an incident management channel in a group-based communication system.
[0071] 4, components of a user interface for adding a workflow step in one particular embodiment of the present invention are shown and generally referenced by the reference numeral 400. In various embodiments, a corpus of available workflow steps is made available to a workflow construction user. In one embodiment, a search field 402 is provided to allow a workflow construction user to search for a particular workflow step by name or other characteristic of the workflow step required to perform a particular step within a workflow. A workflow construction user may search for workflow steps based on the creator of the workflow step, in terms of the workflow step's function or description, or based on a date range associated with the creation or publication of a particular workflow step.
[0072] In some embodiments, one or more of the listed available workflow steps may be added to the workflow by clicking an "Add" button associated with the respective workflow step. As shown in the example of FIG. 4, various workflow steps may be provided. Workflow step 404 performs the function of creating a form that is displayed to an end user of the group-based communication system and made interactive for use by the end user. Further configuration of the workflow step (not shown) may be performed by the workflow construction user when the workflow construction user clicks to add workflow step 404 to the workflow being constructed. Workflow step 406 performs the function of sending a message within the group-based communication system. Workflow step 408 is a shortcut for implementing a group-based communication system shortcut, which performs the underlying group-based communication system function associated with the shortcut as configured in the group-based communication system. Workflow steps 404, 406, and 408 are shown in the illustrated embodiment to be from "GBCS Co.", the operator of the particular group-based communication system. These workflow steps are said to be built in because they are part of the core functionality of the group-based communication system.
[0073] In some embodiments, filter criteria are provided to assist the workflow construction user in filtering the available workflow steps. Such filter criteria include empty filter criteria 416, which provides an unrestricted list of all steps as shown. The filter criteria also include filter criteria 418, which limits the display to built-in workflow steps provided by GBCS Co. In this embodiment, the filter criteria also include filter criteria 420, which limits the display to workflow steps provided by third party applications, such as workflow steps 410 and 412, which provide the ability to add and remove spreadsheet rows based on the configuration of the workflow steps and any current state of the workflow to that point.
[0074] Additionally, workflow step 414 is a step exposed by a hosted group-based communication system application that implements and exposes the functionality of the group-based communication system within the workflow builder user interface shown in Figure 4. Workflow step 414 is entitled "Hosting Up" and is associated with a group-based application entitled "Hosting Up." In various embodiments, a workflow builder user may interact with user interface component 400 to filter the displayed workflow steps to only those provided by a particular third party application, such as application identifiers 422 and 424, which correspond to the "Spreadsheet for Workflow Builder" and "Host Up" third party applications, respectively.
[0075] 5A, a user interface component for configuring arguments to a function in one particular embodiment of the present invention is shown and generally referenced by reference number 500. User interface component 500 is presented to a workflow construction user in association with the workflow construction user selecting to add workflow step 414 of FIG. 4. FIG. 5A illustrates a step configuration modal dialog box that allows the workflow construction user to further configure a workflow step associated with a function implemented by a hosted application. User input elements 502 and 504 correspond to input arguments of a function associated with a workflow step configured in association with user interface component 500, which identifies whether a particular host is operational, i.e., "running". The first argument is entitled "When someone says a host is running, you say:". In some embodiments, user input element 502 is a text box into which a workflow construction user enters a thumbs up emoji and the text "Of course". In one embodiment, a hosted application that exposes a particular function provides default values for user input elements 502 and 504.
[0076] In some embodiments, a workflow construction user may select which of the variable links 512 and 514 to insert to provide variables in place of constant strings in association with the user input elements 502 and 504. The configuration of the user input elements 502 and 504 with variables is further described in connection with FIG. 5B below. In various embodiments, a checkbox 516 is provided to allow the workflow construction user to specify whether the workflow step should be performed synchronously. If the checkbox 516 titled "Wait for step to complete before continuing" is checked, the workflow step is treated as a synchronous step and workflow execution is blocked until the workflow step is completed. Alternatively, if the checkbox is unchecked, execution is not blocked while the workflow step is being performed. In some embodiments, a delete button 510, a cancel button 508, and a save button 506 are provided in the user interface component 500. Selecting the delete button 510 removes the workflow step from the workflow. The cancel button 508 cancels the workflow step configuration operation and the save button 506 saves any changes made in association with the workflow step configuration operation.
[0077] 5B, in certain embodiments of the present invention, a user interface component for inserting variables associated with arguments to a function is shown and generally referenced by reference numeral 550. The user interface component 550 is presented to a workflow construction user in association with the workflow construction user selecting to insert a variable in FIG. 5A. FIG. 5B illustrates a modal dialog box "Insert Variable" that allows a workflow construction user to specify a variable to be inserted in association with the configuration of a workflow step associated with a function implemented by a hosted application. In some embodiments, a list of possible variables to insert associated with the group-based communication system function and workflow is provided. In some embodiments, the variable to be inserted is associated with a shortcut associated with the group-based communication system function being invoked, and such exemplary shortcuts are illustrated in FIG. 5A as shortcuts 552 and 554. The variable associated with the function implementing the workflow step is illustrated as variable 556 entitled "Status". In some embodiments, right-clicking (or providing a long press gesture) on one of the variables provides additional information about the variable. Selecting the variable hides the modal dialog box and inserts the variable into the respective user input associated with a workflow step configuration user interface control, such as user interface control 500 in FIG. 5A.
[0078] Operation of an embodiment of the present invention 6, a data flow diagram 600 for implementing an embodiment of the present invention is shown. Shown in the data flow diagram 600 is an event-based application development environment 602. In some embodiments, the event-based application development environment 602 is created with a source code editor and various other source code development tools. In some embodiments, these tools are installed on a developer device, such as the developer device 202 of FIG. 2. Alternatively, the event-based application development system can be hosted remotely to provide a front-end interface to developers so that they can interact with the event-based application development environment 602.
[0079] In addition to the event-based application development environment 602, an event-based application execution environment 604 is also illustrated, which is an environment for executing one or more event-based applications. The event-based application execution environment 604 may be hosted in a data center operated by an operator of the group-based communication system. Alternatively, the event-based application execution environment 604 may be hosted on-premise in a public or private cloud, or in a data center operated by an enterprise consuming services from the group-based communication system, but does not permit hosting of a particular event-based application and associated data outside of a data center operated by the enterprise. In some embodiments, the event-based application execution environment 604 is a serverless execution environment hosted in association with a public or private cloud platform.
[0080] Data flow diagram 600 also illustrates external event source 606, which is any source of events potentially consumed by the event-based application, as described above with respect to FIG. 3. External event source 606 may be a user entering a message into a group-based communication system channel. A user may enter a message directly into a group-based communication system channel by entering text or other data into a client interface associated with the group-based communication system. A user may also cause an event to be generated by clicking an interactive interface associated with the client interface, by (for example) clicking a button in the interface, or by otherwise interacting with an interface associated with the group-based communication system. External event source 606 may also be an event-based application that generates one or more output events based on one or more trigger events. External event source 606 may also be an external application, such as a news source or social media site. Group-based communication system 608 is also illustrated as both a source and recipient of events in the data flow, as well as an interface and execution environment for group-based communication system workflow steps, as described below.
[0081] Within the environment of data flow diagram 600, an application developer may scaffold a new project or retrieve code for an existing project in the context of developing an event-based application, as shown in flow 610. In some embodiments, this data flows from the event-based application execution environment 604, as well as a skeleton application being provided in a central location associated with the event-based application execution environment 604. This may also be the case, for example, where a source code repository function is also provided by the event-based application execution environment 604. It is understood that an external source code repository (not shown) may also be utilized to provide source code control functionality to the application developer. Once the application developer has scaffolded a skeleton application or retrieved an existing project, the application developer may debug or add functionality to the event-based application. In some embodiments, an emulator or simulation of the application execution environment is provided in association with the event-based application development environment 602 to allow the application developer to iteratively develop the event-based application. Alternatively, the event-based application is deployed onto the event-based application execution environment 604 whenever a file is changed within a set of files associated with the event-based application.
[0082] Flow 612 illustrates the deployment and / or run instructions. In some embodiments, deploying an event-based application to the event-based application execution environment 604 requires creating the application if the application has not already been created based on application configuration metadata. Alternatively, the application is updated based on updated application source code and application configuration metadata. In some embodiments, if an application icon file associated with the event-based application has changed since the last deployment, the application icon file is pre-processed and uploaded to the application execution environment. Pre-processing requires centering and cropping the icon according to application icon sizing requirements, such as icon file size and dimensions. In some embodiments, the source code is bundled and uploaded to the application execution environment hosting platform. If the execution environment associated with the event-based application has not yet been provisioned, the execution environment is provisioned. In some embodiments, an application container is constructed in flow 616 prior to deployment to the application execution environment.
[0083] In flow 618, an application developer creates and monitors debug events to test the event-based application during the course of application development. This may include using APIs associated with the group-based communication system to implement application test suites with predefined inputs and corresponding associated expected outputs. When deployed, the event-based application, whether in development or in a production environment, receives the events, processes them, and generates outputs that correspond to the application logic implemented by the event-based application.
[0084] Referring now to FIG. 7, an exemplary flowchart 700 is shown to illustrate the operation of a method according to an embodiment of the present invention. In various embodiments, an application developer works in a development environment to develop source code that provides the basis for an event-based application. The application developer inputs source code instructions and application metadata, such as application configuration parameters in an application configuration file. In some embodiments, the source code instructions are provided in the form of a source code file in a scripting language, such as one of the languages in the ECMAScript family of programming languages. In other embodiments, the source code instructions are provided in the form of uncompiled or pre-compiled source code in a compiled programming language. In some embodiments, the application configuration parameters are provided in the form of a YAML configuration file. In other embodiments, another markup language (such as JSON or XML) is used. In some embodiments, the data files that make up the application instructions and configuration parameters are packaged into an archive for transmission as a single data file. In some other embodiments, the files may be transmitted individually to a hosting environment. In step 702, these application instructions and configuration parameters are received. In some embodiments, the application instructions and configuration parameters are received by an intermediate processing program associated with the development environment, which may be run on the application developer's development client device, such as development device 202 of FIG. 2. In various embodiments, the application instructions are designed to act on a particular event when the event is received in the group-based communication system.
[0085] Next, in step 704, an application container is generated based on the application instructions and the application configuration parameters. As used herein, an application container is a unit of software that packages code and dependencies, such as libraries, so that an application can be seamlessly and reliably deployed from one application execution environment to another. In some embodiments, an application container image is a lightweight, standalone package of software and configuration metadata that contains everything needed to run an application in a particular run time. A container run time is an execution environment in which a particular category of application container can be run. In some embodiments, an application container is a virtual machine image that can run in any virtual machine execution environment.
[0086] Next, in step 706, the application container is deployed to an application execution environment. In some embodiments, the application container is transferred over a network to a remote data center hosting either a public or private cloud. In some test environments, the execution environment may be an application execution environment residing on the application developer's development device. In some embodiments, the application execution environment is hosted by the operator of the group-based communication system, either in a data center operated by the operator of the group-based communication system, or in another public or private cloud. In some other embodiments, the application execution environment is hosted on-premise in a data center operated by an enterprise that consumes services from the group-based communication system, but is not permitted to host data associated with a particular event-based application outside of the enterprise-operated data center. In some embodiments, the deployment of the application container also requires that processing associated with the event-based application begin execution. In this embodiment, the event-based application listens on a webhook URL and port associated with a public IP address. In some other embodiments, the event-based application is simply deployed and does not execute until an associated event is received in the group-based communication system.
[0087] Continuing with test 708, once the event-based application is deployed, the monitoring process determines whether an actionable event has been received in association with one or more group-based communication system channels associated with the group-based communication system. In some embodiments, the criteria by which it may be determined whether an actionable event has been received is based on the configuration of one or more triggers. A trigger may be a description of an event that should be routed to a particular function associated with the event-based application, as generally described above with respect to FIG. 3. If an actionable event is not received, the monitoring continues to wait for an actionable event to be received. If an actionable event is received in test 708, execution proceeds to step 710.
[0088] At step 710, the actionable event is sent to the appropriate deployed application container. In some embodiments, this includes the group-based communication system detecting that a trigger has occurred, such that a certain condition associated with the trigger has been met by a message or other event occurring in association with the group-based communication system. In some embodiments, this may be the receipt of a message or other group-based communication object received on a group-based communication system channel. In general, the events described above with respect to FIG. 3 are contemplated as being processed at step 710. In some embodiments, the event is formatted by the group-based communication system as a JSON object and sent to the event-based application by posting an HTTP transmission to a webhook URL associated with the event-based application. In these embodiments, the HTTP transmission is an indication that an actionable event has been received that should trigger execution of the event-based application.
[0089] Next, in step 712, the group-based communication system receives a response in response to the event sent in the previous step. In some embodiments, the response is a composite output associated with a function contained within the event-based application and including application logic associated with the group-based communication system. In some embodiments, execution of the application logic associated with the event-based application results in various side effects, such as opening a video conference session or writing data to a data persistence store.
[0090] Finally, in step 714, a message is posted to the respective group-based communication system channel based on the response. In some embodiments, the posted message is itself an event that may trigger further processing in the event-based application or another event-based application. In some other embodiments, the posted message may include interactivity attributes that, when further acted upon by a user of the group-based communication system, cause a further event to trigger further execution by one or more event-based applications associated with the group-based communication system.
[0091] Many different arrangements of the various components depicted, and components not shown, are possible without departing from the scope of the following claims. The embodiments of the present invention are described with the intention of being illustrative, not restrictive. Alternative embodiments will become apparent to the reader after and because of the reading of this disclosure. Alternative means for implementing the foregoing can be accomplished without departing from the scope of the following claims. Certain features and subcombinations are useful and may be used without reference to other features and subcombinations and are contemplated within the scope of the claims. Although the present invention has been described with reference to embodiments shown in the accompanying drawing figures, it should be noted that equivalents may be employed and substituted herein without departing from the scope of the invention as set forth in the claims.
[0092] Having thus described various embodiments of the present invention, what is claimed as new and desired to be protected by patent terms includes the following:
Claims
1. 1. One or more non-transitory computer-readable media storing computer-executable instructions that, when executed by a processor, perform a method for hosting an application in association with a group-based communication system, the method comprising: receiving application instructions and application configuration parameters associated with the application from a development environment, the application instructions and application configuration parameters corresponding to processing steps to be performed in response to a plurality of events; in response to detecting one or more events of the plurality of events in a group-based communication system channel of the group-based communication system; triggering execution of the computer-executable instructions based on metadata associated with the one or more events; and posting a message to the group-based communication system channel based on a response in response to the one or more events. One or more non-transitory computer-readable media.
2. The non-transitory computer-readable medium of claim 1 , wherein each event of the plurality of events is associated with a respective group-based communication system channel of the group-based communication system.
3. generating an application container based on the application instructions and the application configuration parameters, the application container including computer-executable instructions; deploying the application container to an application execution environment associated with the group-based communication system. The non-transitory computer-readable medium of claim 1 .
4. 10. The non-transitory computer-readable medium of claim 1, wherein an application execution environment associated with the group-based communication system is a cloud-based environment distinct from the group-based communication system.
5. executing the computer-executable instructions based on the application instructions in response to the one or more events; storing the data in a data persistence service accessible to an application execution environment associated with the group-based communication system via a persistence application programming interface; The non-transitory computer-readable medium of claim 1 .
6. 6. The non-transitory computer-readable medium of claim 5, wherein storing the data in a data persistence service comprises storing the data in a predefined portion of a data persistence table and causing the group-based communication system channel of the group-based communication system to generate a further event.
7. 10. The non-transitory computer-readable medium of claim 1, wherein an administrative interface associated with an event-based application defines permissions associated with data ingress and egress into an application execution environment associated with the group-based communication system.
8. 1. A method for hosting an event-based application in association with a group-based communication system, comprising: receiving application instructions and application configuration parameters associated with the application from a development environment, the application instructions and application configuration parameters corresponding to processing steps to be performed in response to a plurality of events; in response to detecting one or more events of the plurality of events in a group-based communication system channel of the group-based communication system; triggering execution of computer-executable instructions based on metadata associated with the one or more events; and posting a message to the group-based communication system channel based on a response in response to the one or more events.
9. The method of claim 8 , wherein each event of the plurality of events is associated with a respective group-based communication system channel of the group-based communication system.
10. generating an application container based on the application instructions and the application configuration parameters, the application container including computer-executable instructions; The method of claim 8 , further comprising: deploying the application container to an application execution environment associated with the group-based communication system.
11. The method of claim 8 , wherein an application execution environment associated with the group-based communication system is a cloud-based environment separate from the group-based communication system.
12. executing the computer-executable instructions based on the application instructions in response to the one or more events; The method of claim 8 , further comprising storing data in a data persistence service accessible to an application execution environment associated with the group-based communication system via a persistence application programming interface.
13. 10. The method of claim 8, wherein storing the data in a data persistence service comprises storing the data in a predefined portion of a data persistence table and causing a further event to be generated on the group-based communication system channel of the group-based communication system.
14. The method of claim 13 , wherein an administrative interface associated with the event-based application defines permissions associated with ingress and egress of data into an application execution environment associated with the group-based communication system.
15. A system comprising at least one processor and at least one non-transitory memory storing computer-executable instructions, comprising: The computer executable instructions, when executed by the processor, cause the system to perform a method according to any one of claims 8 to 14. system.
