Event - Trigger by other Flows (Subroutine)
-
OSS/BSS Answers
Access Control Admin Audit B3Network Master Account Channel App Contract App Customer App Discount App Edge Server File Management Finance App Invoice App Number Management Payment Portal Settings Price List Product App Release V2 SMS Gateway Supplier App Support Center Support Hub Business Hub Sales Hub
- App Model - Organization Management
- App Model - Communication Apps Answers
- License Model - Organization Management
-
License Model - CPaaS Solution Answers
Phone System - Admin Guide Phone System - End-user Guide Mobile App Desktop App Web Phone Auto Attendant - Admin Guide Developer Hub - Admin Guide Microsoft Teams Operator Connect - Admin Guide Microsoft Teams Direct Routing - Admin Guide Contact Center - Supervisor Guide Contact Center - Agent Guide Omni-Channel SIP Trunk CPaaS - SIP Trunk Power SIP Trunk CPaaS Fax Contact Dashboard Campaign File Explorer
- Telcoflow
- Integrations Answers
- Updated Regulations
- Ideas Portal
Table of Contents
Overview
This event is also known as a Subroutine which is a smaller flow for a particular task that is available for repeated use in the large flow. It allows users to create general actions that are reusable in different flows under their accounts.
Similar to Actions, subroutine also has Inputs and Outputs which must be declared in advance.
A Subroutine flow has the following properties:
- Predetermined input data structure.
- Optional predetermined output data structure.
- All branches of the subroutine flow must end with Return to Origin Flow action, returning output data with a structure that matches the predefined one.
- Compatible with all types of Projects.
Configuration
In order to create a Subroutine, please follow the steps below:
- Create a new flow with trigger: Trigger by other Flows
- Fill in the requirements:
- Input: Input needs to be passed into this subroutine when triggered.
- Output: Output of this subroutine that can be used as an input of later actions.
-
Data type:
- String: can take both numbers and characters.
- Number: can take numbers only.
- Boolean: can only take the values true or false.
-
Handle ongoing call (optional)
- If you tick this option, it means that this subroutine is only available for the flows which have ongoing transactions (e.g. Incoming Call to Phone Numbers,...)
- Configure Actions
- Add the Action - Return to Origin Flow
- Activate your Subroutine Flow
- Use it for other Flows as an action
Example
Requirements:
- If the output of the previous subroutine is English, trigger branch: Caller chose English
- If the output of the previous subroutine is Indonesian, trigger branch: Caller chose Indonesian
Configuration:
In order to satisfy the requirements, please follow the steps below:
1. Subroutine Flow
Step 1: Event
- Create a new flow with trigger: Trigger by other Flows
- Fill in the requirements:
-
Input: Input needs to be passed into this subroutine when triggered.
- Leave blank
-
Output: Output of this subroutine that can be used as an input for later actions.
- Language - String
-
Handle ongoing call
- Tick
-
Input: Input needs to be passed into this subroutine when triggered.
- Create
Step 2: Action - Gather Input
Configure Actions - Gather Input:
- Message: "Thank you for calling B3Networks Academy. Please press 1 for English, press 2 for Indonesian."
- Expose Output
Step 3: Action - Split Flow
- Configure Actions - Split Flow:
-
Path 1: English
- User's input digits = 1
-
Path 2: Indonesian
- User's input digits = 2
-
Path 1: English
- Add the Action - Return to Origin Flow for each Path
-
Path 1:
- Language - English
-
Path 2:
- Language - Indonesian
-
Path 1:
Step 4: Deploy
- Deploy your Subroutine Flow
- Use it for other Flows as an action
2. Main Flow
Step 1: Event
- Create a new flow with trigger: Incoming Calls to Phone Numbers
- Add the Action - Transfer to other Flow
- Choose the Subroutine that you created in the previous step
- Expose output
Step 2: Action - Split Flow
Choose Action - Split Flow
-
Conditions:
-
Path 1:
- Name: Caller chose English
- Outputs of the Subroutine = English
-
Path 2:
- Name: Caller chose Indonesian
- Outputs of the Subroutine = Indonesian
-
Path 1:
Step 3: Path 1 - Caller chose English
Actions:
- Play a Message: "You are calling B3Networks Academy for more information, please visit our website."
- Hang Up
Step 4: Path 2 - Caller chose Indonesian
Actions:
- Play a Message: "Anda menghubungi B3Networks Academy untuk informasi lebih lanjut, silakan kunjungi website kami."
- Hang Up
Step 5: Deploy
Deploy the flow.