🐪 Как работает синхронизация? - База знаний

Как работает синхронизация?

    Synchronization starts when you enable Llama Assistant in your plugin. After this comes the first synchronization which collects the required data and transfers it to our servers.

    When such connection established, we create a record to schedule this synchronization in a frequent way.

    One way communication

    The synchronization process is initiated by our Llama Machine Learning Service and comes like a request to your plugin. It could be explained like "Hi, plugin! It's Llama, please send me your statistical data".

    This means, that only your plugin could prepare and send data to Llama, but Llama cannot access data directly.

    Connection security

    When a request comes to your LlamasApps plugin, the receiver file checks the credentials before showing any information. The most important part is an access token - it is impossible to access your plugin data without it. That's why you should keep it in a secure place and do not share with other persons.

    Access token is like a password, which is issued by Llamas Machine Learning Service when you do the registration process and start using Llama Assistant.

    When the access token matches, the receiver file checks if Llama Assistant is enabled on your WordPress. If you leave it disabled while the Llama Assistant still assumes you didn't, this will signal to Llama Assistant to stop further synchronization.

    In the end, if all other password and credentials were correct, your plugin does an API request to Llama Assistant.

    Data compression

    During the transfer, data is limited to N most recent records, and is being compressed to leverage the traffic.

    You can explore the process by reading the source code of the plugin files. Please find /ml_assistant.php and /php/llama_assistant_sync.php to learn more.

    Action application

    If you grant permissions to Llama Assistant to make changes on your plugin settings, then Llama Assistant will have rights to do this.

    To enable such function, please send a "/auto-on" command in the chat box.

    Auto Apply function is useful to delegate routine work to Llama Assistant, and do not process it manually. For example, you can ask the Llama Assistant to change a single setting or to do something in bulk. You can find more by clicking the explore commands icon next to chat input message box.

    How Llama Assistant changes your settings

    During the synchronization process, Llama Assistant sends a Actions request to your plugin. This is structured payload of UPDATE, INSERT or DELETE requests.

    If you granted permissions to Llama Assistant to make changes, then the receiver file will process these tasks:

    • Each request is validated that it contains all the required data
    • Then request is executed by your plugin
    • The result of any update is transferred back to Llama Machine Learning Service to generate a report for you

    Auto reports

    If some of Llama Machine Learning Service algorithms discovered a change, which has a high score to be enabled on your website, then Llama Assistant receives such request and does it on the next synchronization.

    During such update, Llama Assistant handles all the statuses, if an update was correct or does it contain any errors.

    After all the requests are finished, Llama Assistant prepares a report for you. And sends the message in the chat, that "Recent tasks are finished, here is the report".

    You can explore the report to see what changes were sent to your plugin, and which of them were processed correctly, and which contain any errors if so.

    В этой статье:
    Нужна помощь?

    Если вы не нашли ваш вопрос в базе знаний, пожалуйста, свяжитесь с нами за поддержкой.

    Запрос поддержки
    Запросить улучшение

    Если вы хотите сделать изменения нашего плагина под ваши потребности, пожалуйста, напишите нам запрос!

    Запросить
    Поделиться

    Есть идея? Поделитесь ей с нами - пришлите сообщение!

    Поделиться идеей

    Вам может заинтересовать...

    Кто такой Llama Assistant?

    Открыть

    Почему Llama Assistant находится удаленно?

    Открыть

    Как происходит сбор данных?

    Открыть

    Как анализируются данные?

    Открыть