1.0.13 • Published 5 years ago

blip.scripts v1.0.13

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

Contents

Regexifybot

Turns all the conditions to from a specific bot that check the user input into regex expressions. Can also be used to turn a sigle expression on a regex for blip

Requirements

Node.JS installed

Usage

Saves the processed bot in "/output/ProcessedwithRegex.json" and the resulting regex for audit in "/output/regex.json"

    npm install
    node regexifybot.js <inputJson>

Or:

Returns the regex expressions on the command line

    npm install
    node regexifybot.js --value="<expression>"

Examples

Regexify an entire bot:

    npm install
    node regexifybot.js test.json

Regexigy a single expression:

    npm install
    node regexifybot.js --value="saque automático"

Addtrackingandsessionscripts

Add standard Trackings and SessionId to all block that have the "[]" marking in the name. If you add the flag "-all" at the end will append to all blocks in the buider

Requirements

Node.JS installed

Usage

Saves in "/output/ProcessedFileWithId.json"

    npm install
    node Addtrackingandsessionscripts.js <inputJson>

Examples

Add standard Trackings only to "[]" marked blocks and sessionId checking where there is user interaction.

    npm install
    node Addtrackingandsessionscripts.js test.json

Add standard Trackings to all blocks and sessionId checking where there is user interaction.

    npm install
    node Addtrackingandsessionscripts.js test.json -all

Addextras

Add extra attributte to track events for blip builer.

Requirements

Node.JS installed

Usage

Put the extras that you wish to add in the file "/resources/extras.json" the output will be saved in "/output/ProcessedFile.json"

    npm install
    node addextrastoscripts.js <inputJson> <optional Append flag>

Examples

Replace extras of all events in the test.json by the content of "/resources/extras.json"

    npm install
    node addextrastoscripts.js test.json

Append extras of all events in the test.json with the content of "/resources/extras.json"

    npm install
    node addextrastoscripts.js test.json a

Addstandardtrackingscripts

Add standard Trackings to all block that have the bot interaction or wait user message or is marked with "[]" ont the title. If you add the flag "--all" at the end will append to all blocks in the builder. If you add the flag "--addContentEvent true" it will create a event to save the user input.

Requirements

Node.JS installed

Usage

Saves in "/output/ProcessedFileWithTrackingScripts.json"

    npm install
    node addstandardtrackingscripts.js <inputJson>

Examples

Add only to "[]" marked blocks.

    npm install
    node addstandardtrackingscripts.js test.json

Add to all blocks and save the content.

    node addstandardtrackingscripts.js test.json --all --addContentEvent true

Standard Trackings

Origem

  • category: >block name< + " - Origem"
  • action: >last block name<

Exibição

  • category: >block name< + " - Origem"
  • action: Exibicao

ChooseAnswer (Only if the block contains quick replies or carrroussels)

  • category: >block name< + " - Cliques"
  • action: >choose answer< or "Entrada Manual"

    AddsessionidtoScripts

    Add scripts required to track the session of the user. This scripts will be added on everyblock that has user interaction and will update the session ID if the last interacion is grater than time configured in {{config.sessionTime}}

Requirements

Node.JS installed Bot Variable:

  • {{config.sessionTime}}: Time in Miliseconds for the session

Usage

Saves in "/output/ProcessedFileWithId.json"

   npm install
   node addsessionidscripts.js <inputJson>

Examples

    npm install
    node addsessionidscripts.js test.json

Addlaststatescript

Append laststateUpdate script in all the block that has a "[]" on the name, except blocks starting with "E...". If you add the flag "--all" at the second argument it will append the script to all blocks in the builder, and if you add the flag "--all" and "--userInteraction" it will append to all blocks in the builder that wait for some user interaction.

Requirements

Node.JS installed

Usage

Saves in "/output/ProcessedFileWithLaststatecript.json"

    npm install
    node addlaststatescript.js <inputJson>

Examples

    npm install
    node addlaststatescript.js test.json

Addchatbaseintegrationscripts

Add scripts required to integrate manually with chatnase. This scripts will be added on everyblock that has user interaction and or bot interaction and will send it to chatbase using post.

Requirements

Node.JS installed Bot Variables:

  • {{config.chatbaseURL}}: URL to send thepost
  • {{config.chatbasekey}}: The chatbase key
  • {{config.version}}: Bot Version
  • {{config.chatbasetrack}}: Chatbase track URL ("https://chatbase.com/r?")
  • {{config.platform}}: Plataform on which the bot will run

Usage

Saves in "/output/ProcessedwithChatbase.json"

    npm install
    node addchatbaseintegrationscripts.js <inputJson>

Examples

    npm install
    node addchatbaseintegrationscripts.js test.json

Clearbotscript

Clear all the input, output actions and tags from all blocks.

Requirements

Node.JS installed

Usage

Saves in "/output/ClearedFile.json"

    npm install
    node clearbotscript.js <inputJson>

Examples

    npm install
    node clearbotscript.js test.json
1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago