Corezoid MarketplaceCorezoid Marketplace
40Processes
1239Downloads
toggle menu
Viber Public Account "Get Weather"
Messengers
0
1080
10
0
With Viber Public Account you can get weather, when you enter the city name.
Additional information
Version:
 1
Create:
 May 30, 2017
Update:
 May 30, 2017
Click to rate:

Click "Use this process" and template of this process "Viber Public Account "Get Weather" will copy in your environment.

Process description

Resiver

Receives webhooks from Viber Public Account and distributes it according to the received value of the " event " parameter.

"event": "message" divides in types: picture, video, file, contact, url, location, text.

Received messages with text type transfers to Main logic.

Main logic

Manages the logic of message sending

Requests weather, sends received air temperature or a message that city is not found.

Send message

By Viber Public Account receives account details (name and link to the avatar) to send message.

Sends messages, distributing it to statuses of sending.

Successful requests are transferred to Message statuses in order to receive messages end status.

Message statuses

Distributes successful requests by states:

"Sent", "Delivered", "Seen", "Not delivered 14days", "Not seen 14 days", "failed - not delivered by Viber".

Preparation

Webhook

Connect the Resiver to Viber Webhook:

  • go to "Webhook" tab
  • press "Connect to messenger"
  • choose Viber
  • press "Set Webhook" and specify the token of your Public Account

Welcome message

If necessary, set the welcome message for your Public Account:

  • after selection of Viber press "Set Welcome message" button
  • choose the welcome message type - text or a picture with text
  • fill out the required fields

Welcome message is sent in reply to received webhook which contains "event": "conversation_started".

This event indicates that user moved to the chat with your Public Account for the first time (ie, no history) or when the chat was opened by deep link.

"conversation_started" It is not considered a subscription and does not allow the Public Account to send messages to users.

But allows to send one welcome message.

Integration with OpenWeatherMap

For user's comfort there's a test access key for OpenWeatherMap API added to Main logic.

In order to receive your access key for OpenWeatherMap API, go to the link and register.

In Get weather by city node, replace test key by a received one in APPID parameter's value.

Testing and launch

Just add a required Public Account and start the dialog.

Go to View mode Resiver or Main logic, in order to see task flow , their moving and distribution by nodes of working processes.

Read more

Similar processes

Twitter Sending message
Twitter Sending message
Messengers
0
FREE
830
5
0
Slack WeatherBot
Slack WeatherBot
Messengers
0
FREE
964
6
0
PA Viber "Выдача карт"
PA Viber "Выдача карт"
Messengers
1
FREE
2179
27
0
Attracting new customers to Viber bot
Attracting new customers to Viber bot
Messengers
2
FREE
1731
30
0
Telegram TwitterBot
Telegram TwitterBot
Messengers
0
FREE
1042
11
0
Telegram WeatherBot
Telegram WeatherBot
Messengers
0
FREE
1425
52
0
2020 © Corezoid.com. Middleware Inc., 541 Jefferson Avenue, Suite 100, Redwood City, CA 94063. All rights reserved. Patent protected. Powered by Erlang | Terms & Conditions