Cubbo Engage
8 min
/
20 Nov

How to use an AI agent in VTEX to sell and provide better service

A VTEX AI agent can help a customer find a product, compare options, calculate shipping, check an order, and continue their purchase. It can also respond via WhatsApp, recover an abandoned cart, or hand off the conversation to a human when things get complicated.

VTEX has a broad architecture. Catalog, pricing, promotions, checkout, logistics, payments, OMS, and marketplaces can all be part of the same operation. That is why simply connecting a language model to the store is not enough. The agent needs to know which data it can query, which actions it can initiate, and what should be left to the team.

What is a VTEX AI agent

A VTEX AI agent is a conversational system connected to the platform's commerce services. It can interpret a question, check the catalog or an order, and respond using up-to-date information.

For example, if asked, "Do you have this model in blue with delivery this week?", the agent should check the variant, stock, and delivery promise before making a recommendation. If the customer asks, "Where is my order?", it should identify the order, check the status, and explain what happens next.

To be useful in day-to-day operations, it should be able to:

  • Search for products, SKUs, categories, and specifications.
  • Compare prices, promotions, and variants.
  • Check availability and inventory.
  • Simulate a cart and calculate delivery options.
  • Share the correct link to continue to checkout.
  • Check orders and shipping status.
  • Answer questions about exchanges, returns, and payments.
  • Recognize when a human needs to intervene.

VTEX offers APIs for catalog, checkout, orders, logistics, pricing, promotions, and other services. The VTEX API reference is useful for seeing which resources are available and what type of integration each use case requires.

What an AI agent can do in a VTEX store

Resolve questions before purchase

Sales conversations usually start with very specific questions: "Which one is best for me?", "What's the difference between these versions?", "Do you have it in my size?", or "When would it arrive in Córdoba?".

The agent can search the catalog and make a recommendation based on usage, budget, or delivery date. If the question is ambiguous, it should ask for more information before sending an endless list of products.

A good response leads to the correct product page and makes it clear why that option is a good fit. If there are multiple sellers or sales channels, it must also take into account which one can deliver the product and under what conditions.

Recommending products and increasing cart value

An agent can suggest a compatible accessory, a different version, or an alternative when the chosen product is unavailable. In an electronics store, it could ask about compatibility. In fashion, about size, color, or fit. In a consumer goods brand, about size or replenishment frequency.

The recommendation must respect the price, stock, and active promotions. It should not offer a discount that the checkout will not accept or recommend an out-of-stock variant.

Preparing the cart and proceeding to checkout

VTEX provides a Checkout API to work with the cart, its items, shipping information, and the orderForm. An agent can use this data to set up a purchase and guide the customer to the next step.

The agent can help with selecting items, adding products, and calculating options. The customer should complete the payment in the store's checkout, using standard VTEX controls. This way, the conversation supports the purchase without turning the model into a payment system.

Recovering abandoned carts

An automated message is not very valuable if it just repeats that the cart is still pending. The customer might have been comparing prices, didn't understand the shipping cost, or wanted to confirm that a variant was back in stock.

The agent can resume that conversation, resolve the doubt, and share the correct link. It can also detect when there is a payment issue and escalate it to a human.

If follow-ups happen via WhatsApp, it is best for the sales and post-sales conversations to share context. Cart recovery works best when it is part of the same journey as notifications and post-purchase support.

Checking orders and deliveries

After payment, the questions change: "Has it shipped yet?", "Can I change the address?", "Why isn't the tracking updating?"

The Orders API lets you look up order details and manage parts of the fulfillment process. An agent can use this data to explain whether an order is placed, approved, processing, shipped, delivered, or on hold.

Before displaying information, you must verify that the person is authorized. If the carrier hasn't updated the tracking yet, the response should state that clearly. It is better to acknowledge that the data is pending than to invent a date.

Operational information helps the agent have something more useful to say than "your order is on the way." When operations shares clear statuses, the team receives fewer repetitive inquiries.

Managing exchanges, returns, and after-sales

The agent can explain the exchange policy, check if a request is within the deadline, and collect the data the team needs.

Refunds, cancellations, address changes, and order modifications require specific permissions. Many stores will prefer having the agent prepare the case and a human approve it before executing the action. Post-purchase communication should also make it clear what the agent can resolve and when the team needs to step in. A solid fulfillment and retention operation connects that experience with what happens after delivery.

How to integrate an AI agent with VTEX

The integration can rely on a VTEX IO app, Core Commerce APIs, webhooks, order feeds, or a combination of these components. The choice depends on how much you want to automate and which systems you already use for catalog, logistics, and support.

VTEX IO App

A VTEX IO app can act as a connection layer between the agent, the store, and other services. The VTEX IO clients documentation includes clients for catalog, checkout, logistics, OMS, promotions, and Master Data.

This approach makes sense when you need a custom integration, multiple channels, or specific rules for the operation. It also allows you to centralize authentication and control which resources each service can access.

Core Commerce APIs

VTEX has separate APIs for different parts of the operation. The catalog is for products and SKUs. Checkout works with the cart and the orderForm. OMS manages orders. Logistics provides inventory, pickup points, and delivery options.

There’s no need to connect everything from day one. You can start with the catalog and FAQs, add checkout once the agent makes solid recommendations, and connect orders once identity verification is sorted out. Your ecommerce integration should scale alongside your use cases, not the other way around.

Feeds, hooks, and events

Feeds and hooks allow you to receive order updates and other changes without continuously polling the platform. VTEX recommends using Feed and Hook-based order integrations to automate order-related processes.

This approach is useful for triggering a message when an order status changes, updating a conversation, or notifying a team. Even so, before responding, it is advisable to verify that the event is not duplicated or outdated.

Integration with WhatsApp and other channels

The same agent can assist customers via the website, WhatsApp, Instagram, or another channel, as long as it maintains context and permissions. The customer shouldn't have to explain what they bought all over again every time they switch channels. If the brand sells across multiple touchpoints, logistics diversification also impacts the information the agent needs to access.

For a D2C brand, linking sales with delivery tracking can make all the difference. Cubbo Engage can bring those conversations together on WhatsApp when the logistics operation is connected. That type of connection makes sense when the agent needs to respond with store and order information, not just general answers.

How to connect VTEX with Cubbo Engage

Cubbo Engage can serve as a conversational layer to bring sales, support, and post-purchase together on WhatsApp. In an operation connected to VTEX, the customer journey can include:

  • Catalog and variants to answer questions and recommend products.
  • Sales conversation to guide the customer to checkout.
  • Order and delivery tracking with updated statuses.
  • Cart recovery when the customer writes back.
  • Exchanges, returns, and issues that require review.

The scope depends on the available integrations, the data the agent can access, and the permissions you define. Before automating cancellations, refunds, or address changes, test common scenarios and make it clear when a person should intervene.

What data the agent needs

The agent doesn't need access to your entire VTEX account. It just needs specific, up-to-date data with enough detail to respond accurately. When catalog, inventory, and orders are synchronized, the conversation can rely on an ecommerce fulfillment operation that's much easier to track.

Catalog and availability

  • Name, description, and category.
  • SKU, variants, and specifications.
  • Price and promotional price.
  • Stock by seller, channel, or location where applicable.
  • Product images and links.
  • Compatibilities and restrictions.

Pricing and promotions

  • Price lists.
  • Active promotions.
  • Coupons and conditions.
  • Rules by channel or segment.
  • Usage limitations.

Checkout and delivery

  • Payment methods.
  • Shipping options and costs.
  • Estimated delivery times.
  • Pickup points.
  • Available regions and sellers.
  • Cart link or identifier.

Orders and after-sales

  • Order status.
  • Products and quantities.
  • Payment and invoicing.
  • Tracking.
  • Open issues.
  • Policies and steps for exchanges or returns.

What an agent should not do without oversight

An agent can sound confident even when it doesn't have the correct information. Define the boundaries before enabling it for all customers.

It should not:

  • Inventing stock, prices, promotions, or delivery dates.
  • Confirming a payment or refund that does not appear in the system.
  • Sharing order details with another person.
  • Changing an address without verifying the customer and the order status.
  • Canceling a purchase without confirming the conditions.
  • Applying discounts outside of configured rules.
  • Promising a return that does not comply with store policy.
  • Providing medical, legal, or financial advice that is not part of the approved information.
  • Hiding the fact that the response comes from an automated system when the brand is required to disclose it.

VTEX recommends controlling authentication and application permissions. For an agent, this means separating read actions from write actions, storing credentials outside the prompt, and logging every sensitive operation.

Chatbot, assistant, or AI agent

These labels are easily confused, but they do not describe the same thing.

Type of toolWhat it is used forWhat may be missing
FAQ chatbotAnswers simple questions and shares linksOrder context, stock, and operational actions
Shopping assistantFinds products and helps compare themFollow-up after purchase
Agent connected to VTEXQueries services, prepares carts, and coordinates tasksPermissions, maintenance, and oversight
Agent connected to ecommerce and logisticsConnects sales, orders, deliveries, and after-sales supportA broader integration

The difference becomes clear when the customer goes off-script. A chatbot might copy the return policy. An agent should be able to check if it applies to that specific order, gather the data, and decide whether to resolve it or escalate it to the team.

How to choose an AI agent for VTEX

Test the tools with conversations and orders similar to those in your store. A demo with a small catalog can hide issues that will appear in production.

About the integration

  • Does it read products, SKUs, sellers, and stock?
  • Can it work with real prices and promotions?
  • Does it prepare the cart without losing context?
  • Does it return the correct checkout link?
  • Does it query orders and shipments with limited permissions?
  • What happens if an API stops responding?

About the conversation

  • Does it understand questions written in different ways?
  • Does it ask useful questions before making recommendations?
  • Does it explain why it is suggesting a product?
  • Does it maintain the conversation if the customer returns later?
  • Does it hand off to a human without making them repeat everything?
  • Does it work on the channel where your customers actually write?

About control

  • Can read and write permissions be separated?
  • Are agent actions logged?
  • Can you manually approve refunds and cancellations?
  • Does it measure assisted sales, recovered carts, and resolved cases?
  • What happens to personal data and how long is it kept?

The criteria should be the same when comparing tools: real data, clear permissions, and a smooth handoff to the human team.

How to get started without complicating operations

Connect the catalog first

Start with products, variants, prices, stock, and FAQs. Test similar names, out-of-stock products, and incomplete queries.

Add recommendations and cart

Next, allow product comparisons, adding items, and sharing the checkout. Verify that the agent doesn't mix up sellers, variants, or promotions.

Connect orders and deliveries

Enable status checks and tracking. Before automating changes or cancellations, define how the customer is identified and when a person should step in.

Review real conversations

Look at which questions it doesn't understand, where it gives poor recommendations, and which cases it escalates too soon. Also, check if conversations end in clicks, carts, and purchases, not just messages sent.

How to get it up and running in VTEX

Start with a specific journey, for example, answering product questions and guiding the customer to checkout. Once the agent responds well using the real catalog, add abandoned carts and order tracking.

Save refunds, cancellations, and address changes for later. These actions require more sensitive permissions and a clear way to hand off the case to a person.

During the first few weeks, review real conversations. See which products generate the most questions, when context is lost, and whether the agent is helping to sell or just sending responses. With that information, you can expand the integration without complicating operations from day one.

Frequently Asked Questions (FAQs)

What can an AI agent do in VTEX?

It can answer questions, search for products, recommend variants, check prices and promotions, prepare carts, share the checkout, and review orders. It can also help with deliveries, exchanges, and returns if it has access to that data.

Can it sell via WhatsApp?

Yes. It can answer questions, show products, help with comparisons, and send the link to continue the purchase in the VTEX checkout. It can also resume a cart or check an order.

Can you create an order within the conversation?

You can prepare the cart and guide the customer to checkout. The exact way to create the order depends on the integration and configured permissions. Payment must remain within a secure flow.

Do I need to develop a VTEX IO app?

Not always. An existing application might cover the use case. If you need custom logic, multiple channels, special permissions, or connections to logistics and support, a VTEX IO app can give you more control.

Can you check an order status?

Yes, if the integration receives data from VTEX and verifies that the person is authorized. It must distinguish between the order status and carrier information.

Can you recover abandoned carts?

Yes. You can send a follow-up and respond when the customer returns. For the message to be effective, it should resolve a specific question and share the correct link, rather than just repeating that there are pending items.

Does an AI agent replace the support team?

No. It can resolve repetitive questions and prepare cases, but the team is still needed for complaints, exceptions, high-value customers, and decisions that require human judgment.

What is the difference between an AI agent for VTEX and Cubbo Engage?

An agent for VTEX can focus on the catalog, checkout, and orders. Cubbo Engage connects sales, support, and after-sales on WhatsApp, with the context of the logistics operation when available.

Text Link
0