InSales
Before adding actions connect InSales and check the store domain.
Get the goods
Returns a shortened list of available products. Use the action to browse the directory when the bot does not require an accurate search at the customer’s request.
Find merchandise
Looking for goods at the request of the user. Suitable for a scenario in which the client specifies the name, type or characteristics of the desired product.
Get the goods
Returns the selected product, its options, prices, availability and available characteristics. Before placing an order, use the identifier of the desired product version, not just the name of the product.
Find a client.
Looking for a customer in one way:
- upon general request;
- by phone number;
- by email.
Try to find a customer first so as not to create a duplicate.
Create a client
Creates a client based on dialog data. Before calling the action, get at least:
- name is the variable
name; - phone - variable
phone; - email if it is used in your script.
Get an order.
Returns the order data by its identifier: composition, customer, delivery, payment, status and final values.
Create an order
Creates an order with selected products and customer data. When setting up the action must:
- Choose the delivery method.
- Choose a payment method. The list contains only methods compatible with the selected delivery.
- Check name, phone and delivery address variables.
- Save the action and changes of the bot.
To perform the action, the bot needs:
- Customer name -
name; - telephone -
phone; - Delivery address -
delivery_address; - variants of goods;
- the quantity of each commodity.
When you add an action through a template or AI assistant, the name, phone and delivery_address variables are created and associated automatically. If the action is added manually, check their presence and binding.
note
Delivery and payment methods are selected in the action settings in advance. The bot does not choose an arbitrary method during the dialogue.
Recommended sequence
- Find the product at the request of the customer.
- Get a product card and specify the option, price and availability.
- Find a customer by phone or email.
- If the client is not found, create it.
- Collect your name, phone number and delivery address.
- Show the customer the goods, quantity, cost and conditions of registration.
- Get clear confirmation.
- Make an order.
- Report successful registration only after a confirmed response.
Do not repeat creating a customer or order manually if the result of the first call is unknown. First, check the data in InSales or get an ID order to avoid creating a duplicate.