Code Monkey home page Code Monkey logo

oneplus-samples's Introduction

Sample code for OnePlus and Tin Tin

Example Studio Flows

Messaging with Lookup and Language

Overview

This Studio Flow provides an example of how to perform a Lookup with the customer's number using the Lookup API. This is used to retrieve the Country Code.

The Country Code is then passed into a function to get the language code. The language code is then passed into a function to dynamically retrieve the greeting message, avoiding a lot of extra management in Studio itself.

Function Dependencies

This flow is dependent on the functions in the functions folder of this repository. Please ensure they are deployed before deploying the Studio Flow. Information on Twilio Functions can be found here:

https://www.twilio.com/docs/runtime/functions

Deploying Studio Flow

The Studio Flow JSON can be imported into a new Studio Flow in your own Twilio project. Instructions for importing a Studio Flow JSON file can be found here:

https://www.twilio.com/docs/studio/user-guide#importing-flow-data

Cleaning up Function References

After importing the Studio Flow, it may be necessary to edit the Function widgets to point to your own versions of the functions. If so, open the newly imported Studio Flow and go through each widget starting with the word Function and select the correct function from the dropdown list.

Voice with Language Widgets

Overview

This Studio Flow provides an example of how to handle multiple languages in a voice flow using Studio Say/Gather widgets.

The prompt verbiage for the Say widgets is stored in flow variables at the beginning of the Flow for easy management and editing in the future, so maintainers don't have to hunt for the prompts in what will inevitably be a very large flow.

Function Dependencies

This flow is dependent on the functions in the functions folder of this repository. Please ensure they are deployed before deploying the Studio Flow. Information on Twilio Functions can be found here:

https://www.twilio.com/docs/runtime/functions

Deploying Studio Flow

The Studio Flow JSON can be imported into a new Studio Flow in your own Twilio project. Instructions for importing a Studio Flow JSON file can be found here:

https://www.twilio.com/docs/studio/user-guide#importing-flow-data

Cleaning up Function References

After importing the Studio Flow, it may be necessary to edit the Function widgets to point to your own versions of the functions. If so, open the newly imported Studio Flow and go through each widget starting with the word Function and select the correct function from the dropdown list.

Example Flex Plugins

Chat Auto Accept

Overview

This sample plugin shows you how to auto accept a chat based task

oneplus-samples's People

Contributors

trogers-twilio avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

indyfromoz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.