Connecting Upgates
Create an API access for Yasan in your Upgates admin, allow the sections Yasan reads, and paste its URL, login and key into Yasan.
Updated:
Your Upgates shop connects to Yasan through an API access that you create in your Upgates admin. You allow the sections of your shop Yasan may read, then paste the access’s URL, login and key into Yasan. Yasan then syncs your catalog and adds the AI Sales Agent and AI Search to your shop when you switch them on.
What you get#
- Product catalog sync: The AI Sales Agent and AI Search know your products. Yasan reads your whole catalog when you connect, then follows the changes you make in Upgates.
- Order lookup: After a customer verifies their email address, the assistant can find their orders.
- No code to paste: When you switch on the AI Sales Agent or AI Search, Yasan adds it to your shop through Upgates conversion codes.
API requests#
Every Upgates plan includes a number of API requests per hour and per day. Your plan’s allowance is enough for Yasan in a shop of the size your plan allows, order lookups during chats included, so you normally don’t need to buy extra request packages. You only pay for the API add-on, 100 Kč a month.
Other add-ons and services that use the Upgates API share the same allowance. If it runs out, Yasan’s catalog updates wait until requests are available again, and nothing is lost. If that happens often, buy request packages in Doplňky → API → Omezení a ceny: each package adds 1,000 requests a day for 30 Kč a month.
Before you start#
- You need access to your Upgates admin, including Doplňky (add-ons).
- You need a Yasan account. If you don’t have one yet, create it first.
Connect your shop#
Activate the API add-on
In your Upgates admin, open Doplňky → API and click Aktivovat. Skip this step if the API add-on is already active.
Create an access for Yasan
Click + Nové and name the access Yasan. Use a separate access for Yasan, not one another service already uses.
Allow the sections Yasan reads
Set the sections as in the table below and leave every other section denied. Then save the access.
Copy the URL, login and key
The saved access shows its URL, LOGIN and KLÍČ API. Keep the page open; you paste all three into Yasan.
Paste them into Yasan
Open Upgates in Yasan, paste the API URL, login and API key, and click Test connection. When the connection works, click Connect.
Yasan then starts syncing your product catalog. The first sync can take a few minutes for a large catalog. You can see the connection in Settings → Integrations.
Sections to allow#
| Section in Upgates | Access |
|---|---|
| Produkty | read |
| Parametry | read |
| Kategorie | read |
| Dostupnosti | read |
| Štítky | read |
| Výrobci | read |
| Sklady | read |
| Soubory | read |
| Ceníky | read |
| Slevové kupóny | read |
| Jazyky | read |
| Nastavení eshopu | read |
| Provozovatel eshopu | read |
| Články | read |
| Doprava | read |
| Platba | read |
| Stavy objednávek | read |
| Objednávky | read |
| Faktury | read |
| Košíky | read |
| Zákazníci | read |
| Konverzní kódy | full access |
Webhooky is always allowed, and Yasan uses it to hear about changes in your catalog. Yasan needs full access to Konverzní kódy to add the widgets to your shop. It only reads the other sections and never changes your products, orders or customers. If your Upgates plan doesn’t offer one of the sections, skip it.
If a section is missing, Yasan doesn’t connect and lists the missing sections by the names Upgates uses. Allow them in Doplňky → API, save the access and click Test connection again. You don’t need a new key.
Turn on the AI Sales Agent and AI Search#
You switch the widgets on and off, and change how they look, in Yasan. See Enabling and Disabling the AI Sales Agent and Setting up AI Search.
When you switch a widget on, Yasan adds its script to the end of every page of your shop as a conversion code of its API access, in each of your shop’s languages. You don’t edit your template, and the code doesn’t appear among your own codes in Doplňky → Vlastní konverzní kódy. When you add a language later, Yasan adds the code to it within a few minutes. If the code goes missing, Yasan writes it again with its next daily sync. Disconnecting the shop in Yasan removes the code in every language, and so does deleting Yasan’s API access in Upgates.
Don’t paste the installation snippet into your own codes as well: Yasan already loads the widgets, and a second copy can load them twice. If a widget doesn’t appear although it is switched on, open AI Sales Agents, choose Configure on the store, then Installation, and check the common pitfalls listed there.
Managing the connection#
- New key or URL: If you regenerate the key or create a new access in Upgates, open the connection in Settings → Integrations and enter the API URL, login and API key again. All three are replaced together. The URL must stay that of the same shop: to connect another Upgates shop, disconnect this one and connect the new one.
- Moved shop: When Upgates moves your shop to another server, Yasan follows the new API URL by itself.
- Disconnecting: Disconnect the shop in Settings → Integrations. Yasan then removes its conversion code in every language and its webhooks from your shop. Afterwards, delete the Yasan access in Doplňky → API. If no other service uses the API, you can also deactivate the API add-on to stop paying for it.
Troubleshooting#
Upgates refused the login and API key
Copy the LOGIN and KLÍČ API again from Doplňky → API. If you generated a new key, the old one no longer works.
The API requests are used up
Your shop’s requests for the hour or the day are spent, often because another add-on uses the same allowance. Catalog updates wait and catch up by themselves, and Test connection works again once requests are available. If it keeps happening, add request packages in Doplňky → API → Omezení a ceny.
The API URL is not accepted
Copy the URL as Doplňky → API shows it, for example
https://your-shop.admin.s1.upgates.com/api/v2. The address of your admin,https://your-shop.admin.s1.upgates.com, works too. The address of your storefront or of a page inside the admin doesn’t.