Git Product home page Git Product logo

tiva-sms-connector's Introduction

twilio-teneo-sms-conversational

A simple connector that allows Teneo to maintain a conversation with a human over SMS. This connector runs as a Express server. Configure the server's base URL with Twilio as a webhook for inbound SMS'.

Configure Your Webhook URL in Twilio

Configuration

Copy .sample.env to .env and update that variables. The only mandatory value is your TIE url.

The connector can store TIE session in either Redis or In-memory. To use the In-memory cache then just leave the value for REDIS_HOST empty

Teneo Output Parameters

If you want to send an image along with the Teneo response then just specify a output parameter called image with the value containing a URL to an image.

Heroku

You can get up and running quickly by using the deploy to Heroku button below:

Deploy

Docker & Docker Compose

You can optionally run the connector using either Docker or Docker Compose.

Docker Example:

docker run -p 3000:3000 -it --env TIE_URL=https://<TIE-HOST>/<TIE-CTX-PATH>/ jolzee/twilio-teneo-sms-conversational:latest

Docker Compose Example:

This combines a NGROK container that exposes the server on a public URL that can then be used as the webhook url in Twilio.

Update your TIE url in the docker-compose.yml file before running the command below.

docker-compose up
version: "3"
services:
  twilio-teneo-sms-conversational:
    image: jolzee/twilio-teneo-sms-conversational
    container_name: twilio-teneo-sms-conversational
    ports:
      - "3000:3000"
    environment:
      - TIE_URL=
      - REDIS_HOST=
      - REDIS_PORT=6379
      - REDIS_PASSWORD=
  ngrok:
    image: "wernight/ngrok:latest"
    container_name: ngrok
    command: [sh, -c, "echo NGROK Admin URL http://localhost:4040 && /entrypoint.sh"]
    links:
      - twilio-teneo-sms-conversational:http
    ports:
      - "4040:4040"
    environment:
      - NGROK_PORT=twilio-teneo-sms-conversational:3000
      - NGROK_REGION=us
      - NGROK_BINDTLS=true

tiva-sms-connector's People

Contributors

jolzee avatar

Watchers

James Cloos avatar

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.