---
title: How Wellzesta Actions deliver AI
description: Explore the power of event-driven architecture in AI! Learn how real-time events enhance responsiveness and scalability, driving innovation in AI systems.
image: https://articles.wellzesta.com/hubfs/grid-AI.webp
---

[![Wellzesta](https://assets-global.website-files.com/6527f83222cbee1b24466b4d/652ed4901978b1a2ac40ce28_LogoWellzesta.svg)](https://www.wellzesta.com/)

[Home](https://www.wellzesta.com/) [Solutions](https://www.wellzesta.com/solutions) [Benefits](https://www.wellzesta.com/benefits)

 Resources ![](https://assets-global.website-files.com/6527f83222cbee1b24466b4d/6527f83222cbee1b24466c7a_chevron-down.svg)

[Articles A library worth reading](https://articles.wellzesta.com/) [White Papers Research-focused discoveries](https://www.wellzesta.com/resources/white-papers) [Case Studies Real-world client benefits](https://www.wellzesta.com/#cases) [Videos Watch our videos](https://www.wellzesta.com/resources/videos) 

[About us](https://www.wellzesta.com/about-us) [Contact](https://www.wellzesta.com/contact)

[Book a Demo](https://www.wellzesta.com/#book-a-demo)

![](https://assets-global.website-files.com/6527f83222cbee1b24466b4d/6527f83222cbee1b24466cad_menu-3-line.svg)

[Home](https://www.wellzesta.com/) [Solutions](https://www.wellzesta.com/solutions) [Benefits](https://www.wellzesta.com/benefits)

Resources

![](https://assets-global.website-files.com/6527f83222cbee1b24466b4d/6527f83222cbee1b24466c7a_chevron-down.svg)

[Articles A library worth reading](https://articles.wellzesta.com/) [White Papers Research-focused discoveries](https://www.wellzesta.com/resources/white-papers) [Case Studies Real-world client benefits](https://www.wellzesta.com/#cases) [Videos Watch our videos](https://www.wellzesta.com/resources/videos) 

[About us](https://www.wellzesta.com/about-us) [Contact](https://www.wellzesta.com/contact)

# How Wellzesta Actions deliver AI

##### Posted by [John M. Robinson MD, PhD](https://articles.wellzesta.com/author/john-m-robinson-md-phd) on March 17, 2025

![Artificial Intelligence](https://articles.wellzesta.com/hubfs/grid-AI.webp)

 

*This is the first article in a series on how Wellzesta incorporates artificial intelligence (AI) in our products and services.*

### About

The articles in this series are technical briefs; they are intended for a technical audience like CIOs and Heads of IT. Each article provides a technical overview of how certain functionality is implemented in Wellzesta StrongBand, Wellzesta's cloud-based API. 

### Introduction

> The purpose of generating an event is typically to allow other systems to easily react to changes in a source that they do not control. The source and action are typically built by different developers. Often the source is a managed service and the action is custom code in a server-less function (such as AWS Lambda or Google Cloud Functions).

Actions do something in response to an event. An event is a specific occurrence from a specific source.

Wellzesta Actions respond to events within Wellzesta's event-driven architecture. 

### Wellzesta's event-driven architecture

Figure 1 illustrates Wellzesta's event-driven architecture. The API responds to a Create-Update-or-Delete (C-UD) request by sending an event to a channel on the PubSub message broker. The event is routed to a cloud function that is subscribed to the PubSub channel. 

![execution flow](https://articles.wellzesta.com/hs-fs/hubfs/execution%20flow.png?width=1686&height=984&name=execution%20flow.png)

Figure 1. Flow diagram for Change Data Capture (CDC). CDC sends data to the database of the AI-search engine.

Wellzesta's event-driven architecture implements the [CloudEvents specification](https://cloudevents.io/). Figure 2 shows the CloudEvent schema. The "data" field is customized for a specific event type. 

![CloudEvent Schema](https://articles.wellzesta.com/hs-fs/hubfs/CloudEvent%20Schema.png?width=1498&height=664&name=CloudEvent%20Schema.png)

Figure 2. CloudEvent Schema. 

### Wellzesta Actions

Wellzesta Actions are implemented as cloud functions. Cloud functions can be written in just about any programming language, but our preferred language is Python. We like Python because it is "human readable," supports object oriented programming, and has strong support for classic data science and machine learning libraries (e.g., NumPy, SciPy, Pandas, TensorFlow). Python is the preferred language for most new AI tooling (e.g., ChatGPT, Bard).

The cloud functions ([v. 2](https://cloud.google.com/blog/products/serverless/cloud-functions-2nd-generation-now-generally-available)) run on Google's CloudRun platform-as-a-service (PaaS) architecture. CloudRun has a highly scalable, and cost effective, container platform. Recall that Google is the force behind [Kubernetes](https://kubernetes.io/) orchestration environment, so we are likely getting Kubernetes-as-a-service without the overhead maintenance.

### Example

The action that is performed by cloud function shown in Figure 1 is to update index of a database that is part of a distributed search and analytics engine (AI-search).

The AI-search engine is a search service within Wellzesta StrongBand. AI-search is accessed through its API, which is distinct from the main publicly-accessible GraphQL API. The search API is called directly by Apps such as Wellzesta Life, Wellzesta Elevate, and Wellzesta Thrive.

The Wellzesta Life App calls the search API to perform search queries on behalf of end users who are usually residents at Life Plan Communities. End users can also be @home "members," and "future residents." In Wellzesta Life, end users can search within specific sections of the App or search globally across all sections of the App. Figure 3 shows the results from a search within an organization's documents. 

![Document search](https://articles.wellzesta.com/hs-fs/hubfs/document%20search.png?width=1932&height=1426&name=document%20search.png)

Figure 3. Screenshot from the AI-search page on the documents section of Wellzesta Life.

Diving a bit deeper, Wellzesta Life is a full-stack application that consists of both server-side and client-side components. The server-side component of Wellzesta Life is node.js, a JavaScript runtime. Wellzesta Life calls the search API through the node.js runtime so search queries are server-to-server. Utilizing server-server communication enhances stability and security. 

### Conclusions

- Wellzesta Actions perform AI tasks.
- Wellzesta Actions are mostly implemented as cloud functions written in Python. 
- Wellzesta Actions respond to events within Wellzesta's event-driven architecture. 
- One example of a Wellzesta Action, discussed here, is the data ingestion into Wellzesta's AI-search engine that is triggered by C-UD behavior in the Wellzesta API. 
- Wellzesta's event-driven architecture is part of Wellzesta StrongBand, Wellzesta's cloud-based API.

### Next Steps

We transform legacy communication systems into innovative, highly-adopted engagement platforms that support resident well-being and staff efficiency.

To learn more, book a demo.

[artificial intelligence](https://articles.wellzesta.com/topic/artificial-intelligence) [Engineering](https://articles.wellzesta.com/topic/engineering) [IT](https://articles.wellzesta.com/topic/it)

---

Main pages

[Home](https://www.wellzesta.com/) [Solutions](https://www.wellzesta.com/solutions) [Benefits](https://www.wellzesta.com/benefits) [About us](https://www.wellzesta.com/about-us) [Contact](https://www.wellzesta.com/contact)

[Life](https://www.wellzesta.com/products/wellzesta-life) [Elevate](https://www.wellzesta.com/products/wellzesta-elevate) [Vis](https://www.wellzesta.com/#)

[Connect](https://www.wellzesta.com/#) [Discover](https://www.wellzesta.com/#) [Thrive](https://www.wellzesta.com/#)

Case Studies

[Greenfield Community](https://www.wellzesta.com/cases/greenfield-community) [Enterprise Organizations](https://www.wellzesta.com/cases/enterprise-organizations) [Sigle-Site Community](https://www.wellzesta.com/cases/single-site-community) [Home Care Franchises](https://www.wellzesta.com/cases/home-care-franchises)

Contact us

[![](https://assets-global.website-files.com/6527f83222cbee1b24466b4d/6527f83222cbee1b24466c11_mail.svg) info@wellzesta.com](mailto:templates@wavesdesign.io) ![](https://assets-global.website-files.com/6527f83222cbee1b24466b4d/6527f83222cbee1b24466c02_message-circle.svg)

@wellzesta

![](https://assets-global.website-files.com/6527f83222cbee1b24466b4d/6527f83222cbee1b24466bfc_phone.svg)

864-214-6530

[![](https://assets-global.website-files.com/6527f83222cbee1b24466b4d/652ed4901978b1a2ac40ce28_LogoWellzesta.svg)](https://www.wellzesta.com/old-home)

 We transform legacy communication systems into innovative, highly-adopted engagement platforms that support resident well-being and staff efficiency.

[![](https://assets-global.website-files.com/6527f83222cbee1b24466b4d/6578c30da1267d7c18f4dd93_linkedin-review.svg)](https://www.linkedin.com/company/wellzesta/) [![](https://assets-global.website-files.com/6527f83222cbee1b24466b4d/6578c30d65f07e3392c9d87f_facebook-review.svg)](https://www.facebook.com/wellzesta/)

Newsletter

Stay up-to-date with our newsletter. No spam, just good stuff.

Thank you! Your submission has been received!

Oops! Something went wrong while submitting the form.

 Site created by Wellzesta (Copyright 2024) | Wellzesta is based in Charlotte, North Carolina and works with organizations across the United States.

[Terms of Service](https://www.wellzesta.com/terms-of-service)  | [Privacy Policy](https://www.wellzesta.com/privacy-policy)  | [Cookie Policy](https://www.wellzesta.com/privacy-policy)