Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • License Model - CPaaS Solution Answers
  • Developer Hub - Admin Guide
  • Actions

Action - Memory

Written by B3Networks Academy

Updated at June 2nd, 2023

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • 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
    General Account Settings Payment and Credits Billing & Invoices Developer Tools Members & Teams Subscription Management Audit & Reports
  • App Model - Communication Apps Answers
    Bizphone BizPhone Desktop Application Bizphone Mobile Application Wallboard SIP Fax Global DNC File Explorer Virtual Line Call Recording Direct Line SMS Marketing
  • License Model - Organization Management
    General Account Settings Payment & Credits Audit & Reports Call Rules & Holidays Members & Teams Numbers Tab Billing & Invoices Organization Connect CPaaS - DNC Security Policy Security Groups Security Events Tab
  • 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 CPaaS Hotdesking Contact Campaign File Explorer Power Mobile App Files App
  • Telcoflow
  • Integrations Answers
    Freshdesk MS Teams - Bizphone NewRock
  • Updated Regulations
  • Ideas Portal
+ More

Table of Contents

Introduction 1. Add to Memory 2. Get from Memory 3. Increase Memory Value by 1 4. Add to Memory List 5. Get from Memory List Example: 1. Single Memory 2. Memory List

Introduction

Memory is an action that supports storing data and sharing it within executions of the same flow or among different flows.

There are 4 sub-actions under Memory:

  1. Add to Memory
  2. Get from Memory
  3. Increase Memory Value by 1
  4. Add to Memory List
  5. Get From Memory List

1. Add to Memory

This action is used to add 1 single output from the previous action to the Memory.

REQUIRED INPUTS

  • Key name
  • Value
  • Time to live (The period of time during which memory is intended to be valid)
NO OUTPUT

2. Get from Memory

This action is used to get value from the Memory.

REQUIRED INPUTS
  • Key set in Flow
  • Key name
OUTPUT
  • Value (String)

3. Increase Memory Value by 1

This action is used to count the number of times an event happens (e.g, count the number of abandoned calls, send SMS when it reaches 5)

REQUIRED INPUTS

  • Key name
  • Time to live (The period of time during which memory is intended to be valid)

OUTPUT

  • Incremented Value (Number) (The value after the increment)

4. Add to Memory List

This action is used to add multiple outputs from the previous action to the Memory List.

REQUIRED INPUTS

  • List name
  • Value
  • Time to live (The period of time during which memory is intended to be valid)

NO OUTPUT

Do not replace if value exists:

  • Tick = thesystem will not add if a value already exists.
  • Untick = thesystem will delete the existing value and add it as the most recent value.

5. Get from Memory List

This action is used to get value from the Memory List.

REQUIRED INPUTS

  • List set in Flow
  • List name
  • Index

OUTPUT

  • Value (String)

Index:

  • Most recent: get the most recent value in the list
  • Least recent: get the least recent value in the list
  • Custom: get one of the values in the list:
    • ...
    • -3 =3rd Most recent
    • -2 = 2nd Most recent
    • -1 = Most recent
    • 0 = Least recent
    • 1 = 2nd Least recent
    • 2 = 3rd least recent 
    • 3 =4th least recent
    • ...

Also remove value from list:

Get and delete value from the list.

Example:

1. Single Memory

Requirements:

  • Send a Survey SMS message to your Caller when the call ended. 
  • Do not send the message again to the same Caller within 7 days.

Configuration:

In order to fulfill this requirement, follow the steps below:

Step 1:

  1. Create a flow with trigger: Call Ended
  2. Select the Action - Send SMS Message (legacy)
    • Destination Number
    • Sender Name
    • Message:
      • "Could you take 60 seconds to go to [link to review platform] and share your happy experiences? We will be forever grateful. Thank you in advance for helping us out!"
  3. Expose Output
 
 

Step 2:

  • Choose Action - Add to Memory:
    • Save the information of the Caller.
      • Value = SMS Sent
      • Time to live = 7 days.
 
 

Step 3:

  • Before the Send SMS action, choose Action - Get from Memory:
    • Get the value:
      • From the same flow
      • Caller Number
 
 

Step 4:

  • After the Get action, choose Split Flow:
    • Path 1: Already sent SMS in the last 7 days
      • Get Value = SMS Sent
    • Path 2: Has not sent SMS
      • When all else fails (Default path)
      • Add all the next actions in this path
    • Deploy
 
 

Single Memory

2. Memory List

Requirements:

  • You have a menu of 3 options, you want to save the Caller's time by announcing the two most recent chosen options.
    • First time: 
      • The Caller will hear the Full Menu.
    • Second time:
      • The Caller will hear the confirmation of their selected option.
      • Full Menu.
    • Third time and later:
      • The Caller will hear the confirmation of their most and second selected options.
      • Full Menu.

Configuration:

In order to fulfill this requirement, follow the steps below:

Step 1:

  1. Create a flow with trigger: Incoming Call to Phone Numbers
  2. Select the Action - Gather Input
    • Message to Play:
      • Press 1 for Red
      • Press 2 for Green
      • Press 3 for Purple
    • Language
    • Predefined inputs
    • Expose Output
  3. Choose the Action - Split Flow
    • Path 1: Red
      • Actions:
        • Add to Memory List:
          • List name: Caller ID
          • Value: Red
          • Time to live: 4 days
          • Untick [Do not replace if value exists]
        • Hang Up
    • Path 2: Green
      • Actions:
        • Add to Memory List:
          • List name: Caller ID
          • Value: Green
          • Time to live: 4 days
          • Untick [Do not replace if value exists]
        • Hang Up
    • Path 3: Purple
      • Actions:
        • Add to Memory List:
          • List name: Caller ID
          • Value: Purple
          • Time to live: 4 days
          • Untick [Do not replace if value exists]
        • Hang Up
 
 

Step 2:

  1. Before the Gather Input action, choose Action - Get from Memory List:
    • Get the value 1: Get most recent
      • From the same flow
      • List Name = Caller ID
      • Index = Most recent option (or Custom = -1)
    • Get the value 2: Get second most recent
      • From the same flow
      • List Name = Caller ID
      • Index = Custom = -2
  2. Select the Action - Split Flow
    • Path 1: 1 color
      • "Get most recent: Value" - Exists
      • "Get second most recent: Value" - Does not Exist
    • Path 2: 2 colors
      • "Get most recent: Value" - Exists
      • "Get second most recent: Value" - Exists
    • Path 3: First run
      • Default path (When all else fails)
      • Add the Action in Step 1 under this Path
 
 

Step 3:

Path 1: 1 color
  1. Select the Action - Gather Input
    • Message to Play:
      • Your favorite color is "Get most recent: Value". What's your new favorite color? Press 1 for Red, 2 for Green, 3 for Purple.
    • Language
  2. Select the Action - Split Flow
    • Path 1: Red
      • Actions:
        • Add to Memory List:
          • List name: Caller ID
          • Value: Red
          • Time to live: 4 days
          • Untick [Do not replace if value exists]
        • Hang Up
    • Path 2: Green
      • Actions:
        • Add to Memory List:
          • List name: Caller ID
          • Value: Green
          • Time to live: 4 days
          • Untick [Do not replace if value exists]
        • Hang Up
    • Path 3: Purple
      • Actions:
        • Add to Memory List:
          • List name: Caller ID
          • Value: Purple
          • Time to live: 4 days
          • Untick [Do not replace if value exists]
        • Hang Up
 
 

Step 4:

Path 2: 2 colors
  1. Select the Action - Gather Input
    • Message to Play:
      • Your favorite color is "Get most recent: Value", and your second most favorite color is "Get second most recent Value". What's your new favorite color? Press 1 for Red, 2 for Green, 3 for Purple.
    • Language
  2. Select the Action - Split Flow
    • Path 1: Red
      • Actions:
        • Add to Memory List:
          • List name: Caller ID
          • Value: Red
          • Time to live: 4 days
          • Untick [Do not replace if value exists]
        • Hang Up
    • Path 2: Green
      • Actions:
        • Add to Memory List:
          • List name: Caller ID
          • Value: Green
          • Time to live: 4 days
          • Untick [Do not replace if value exists]
        • Hang Up
    • Path 3: Purple
      • Actions:
        • Add to Memory List:
          • List name: Caller ID
          • Value: Purple
          • Time to live: 4 days
          • Untick [Do not replace if value exists]
        • Hang Up
 
 

Step 5: Deploy

Return to the main page and deploy the Flow

 
 

Memory List

recall reaction

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Manage Programmable Flow
  • Event - Call Detail Updated
  • Execution Log
  • Event - API - Incoming Call

© B3NETWORKS PTE LTD. All Rights Reserved.

Data Policy

Service Level Agreement

Expand