Socket
Socket
Sign inDemoInstall

csml-client

Package Overview
Dependencies
168
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    csml-client

Interact with a CSML chatbot in your terminal!


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

csml-cli-client

CLI Client for CSML

This CLI client is made to interact with chatbots created on https://studio.csml.dev and exposed through the API connector.

For more information about CSML, please refer to https://docs.csml.dev/#introduction.

:cloud: Installation

Clone the repository

$ git clone git@github.com:bastienbot/CSML-cli-client.git
$ cd CSML-cli-client

Create the CSML API connection

In the CSML studio, create a API connection. csml-api-connection

Create a new .env based on the existing example

cp .env.example .env

Then copy and paste your credentials in the .env file

:computer: Usage

$ node main.js "Show me my AWS bill for last month"

This will start a conversation with your chatbot sending "Show me my AWS bill for last month" as first message.

Components

Here are a list of supported components :

  • Text() is shown as expected
  • Url() shows the url, your terminal might of might not provide an clicking interface
  • Image() shows the url, your terminal might of might not provide an clicking interface
  • Wait() shows the amount is async so the chatbot will not wait, although it will notice you of the instruction
  • Url() shows the amount is async so the chatbot will not wait, although it will notice you of the instruction
  • Button() shows a button as text with the option of selecting a button by tyuping its number (1, 2, 3, ...)
  • Question() shows the question and the buttons shown as buttons components

csml-api-client-example

:sunglasses: Enjoy

FAQs

Last updated on 06 Feb 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc