Skip to content

DPNLPF-1571: smart_geo action, handler #218

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

SyrexMinus
Copy link
Collaborator

Добавлен smart_geo action для получения геоданных пользователя, необходимых для сценария смартапа.

Описание smart_geo сервиса: https://developers.sber.ru/docs/ru/smartservices/smartgeo/overview

Использование:

{
  "type": "smart_geo"
}

Акшн выполняет команду в smart_geo сервис и обрабатывает ответ в HandlerTakeProfileData.run.
В случае успеха полученные геоданные пользователя сохраняются в user.variables.smart_geo и вызывается smart_geo_success акшн, описанный по-умолчанию в static/references/actions/actions.json
В случае ошибки вызывается smart_geo_fail акшн, описанный по-умолчанию в static/references/actions/actions.json

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants