About Magama

Magama is a Chilean startup that has been delivering innovative digital experiences for the past 4 years. Using incredible immersive solutions, Magama transports customers to the world of virtual reality through 3D virtual tours, intended for both events and activities on the topics of engineering and architecture.

Customers can also explore the Metaverse by utilising Magama’s artificial intelligence and chatbots. The startup has integrated AI into the virtual world and connected a chatbot, which aids the user’s navigation. Furthermore, the voice assistant option enables seamless communication and interaction with both the chatbot and other users in the environment, increasing ease and enjoyment for users as they explore the virtual world.

Application Integration with Amazon Lex Chatbot

The Business Challenge

Connecting the world of chatbots to virtual reality

Magama had engaging solutions from day dot, albeit with one vital element missing: a chatbot. With the addition of a chatbot, end users would have an even more immersive and fluid experience. A chatbot would eliminate the need for human assistance in the majority of cases by providing answers to user questions and resolving basic issues with the virtual space in a quick and automated way.

From a technical point of view, Magama needed to connect its virtual solution to not only a chatbot solution, but also channels such as Messenger, Whatsapp, and others. To achieve this, Magama required an integration that allowed connections between the various systems and chatbots. Analytical and quality control metrics also needed to be implemented, enabling Magama to monitor and optimise the chatbot’s performance, as well as gather insights for improved future developments.

During the project an additional challenge emerged when the discontinuation of the VR service being used by Magama was announced. To ensure the virtual solution would be supported and have its technical needs met for many years to come, identifying and switching to another suitable VR service was vital.

Magama’s decision to leverage AWS as their primary cloud provider led them to partner with the team at DNX Solutions, which brought their vision to life.

The solution: API and the dashboard

DNX proposed a two-part solution to achieve Magama’s objectives. The solution first addressed the need to integrate applications with any Amazon Lex chatbot, which in this case was Lex v2. The DNX team created a serverless API, powered by Amazon, that intermediates the communication and supports communication both via text and voice. Incorporating a voice assistant option provides users with a more natural and intuitive way of interacting with the chatbot and removes the need for written explanations, which can interrupt the flow of the experience. In addition to Amazon Lex, the main services used to reach this outcome were Amazon API Gateway and Amazon Lambda.

The second part of the solution was to create an Amazon Lex analytics dashboard. To achieve this, we used Amazon CloudWatch Logs Insights, which consumes native Amazon Lex logs and allows for visualisation of results on a dashboard. DNX wrote the entire solution and built the infrastructure using code (IaC), which not only increases ease of replication, modification and control, but also met Magama’s need to be able to create multiple dashboards for their wide range of customers.

Using APIs was identified as the most appropriate technology to meet Magama’s needs once it came to light that the planned VR service would soon be discontinued. Although this required a modification of the proposed solution, the DNX and Magama teams worked together to ensure as little disruption to the project scope and ideation as possible. Ultimately, the use of APIs brought additional benefits to Magama due to availability of a larger range of compatible integrations.

Interacting inside and outside of virtual reality

The final product DNX delivered was an agnostic solution, which, through simple adjustment of the parameters, can integrate any Amazon Lex v2 chatbot and have the desired metrics visualised. This supports Magama’s purpose of providing innovation with chatbots in various environments, inside and outside of virtual reality, and capturing relevant data for visualisation on the dashboard.

Another positive outcome of the project is the ability Magama now has to make APIs available to their contractors directly, whilst simultaneously maintaining control over them. This control will allow Magama to adopt a usage-based pricing system for the chatbot solution in the future, if they so choose.

Last but not least, despite the adjustments made to the scope and ideation during the project, Magama received a cost-effective and versatile solution that can be easily configured and deployed ad infinitum, facilitating growth and scalability.

Outcome and Next Steps

As a result of the modernisation and migration of Carguero’s application and data, the company reached its goal of 99.9% disponibility for its application. This led to a 20% increase in the number of users, improving the responsiveness and resiliency of the Brazilian agro-companies that are part of Carguero. With the environment structuring in IAC, Carguero’s team was able to replicate development environments, resulting in a significant increase in application releases. The DNX team is now working on a disaster recovery project for Carguero, to further strengthen their application in the cloud.

Related Posts