Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@axa-ch/alt-pod-chatbot

Package Overview
Dependencies
Maintainers
48
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axa-ch/alt-pod-chatbot

ADA - AXAs digitale Assistentin

  • 1.12.13
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
48
Created
Source

ADA - Pod Chatbot

For our customers. Plug ADA on any content page on axa.ch with no configuration

Configuration

all ADA configurations are in podproperties.json

Propertystage dependentlanguage dependentcomment
type--default = on-dom-loaded
async--flag that ADA is loaded async
contactIntent-xreturns an object { name, intent } - you can define what happens on the 'contact' icon
apiBaseUrlx-URL for bot endpoint to generate token
directLineBaseUrlxdirect line endpoint
stagexauto generated by FE team
languagexauto generated by FE team
podversionauto generated by FE team

Read more about podproperties POD Properties page.

Release management

Prepare a release

These steps only need to be done once per version, no matter to which stage you are deploying later on.

1. Set POD version

Update package.json in the "version": "1.x.yz" field and push/merge it to the develop branch. Please follow semver best practices.

This version will be used to select the version to build and deploy in the next steps.

2. Publish POD pod as NPM package

To deploy the POD to the NPM registry, merge the develop branch to the main branch.

The CI/CD pipeline on Azure DevOps is automatically building and publishing the latest version of this POD to https://www.npmjs.com/package/@axa-ch/pod-chatbot.

Manual option: see Appendix

3. Create a Draft Release on GitHub

For documentary purposes, create a draft release on GitHub.

FieldValue
Tag versionVersion from step 1
Targetmain
TitleAXA - {VERSION} {TITLE}
DescriptionSummarize all changes

Save it as draft as long you didn't released this version to Production. As soon as you released the version pro production, publish it as release (so it will be set to the latest commit).

Release

Go to Jenkins to start the relevant jobs.

1. Build: open webhub-dx_module-build and click "Build with Parameters" from the menu.

Do this just once, no mater to which stages you are deploying.

FieldValue
webhubModuleNamepod-chatbot
webhubModuleVersionVersion of the published npm package (only the version), like "1.10.3"
releaseVersionSame version as above, like "1.10.3".
branchTobuildAlways set to "develop" (has nothing to do with the pod github source)

Press "Build"

2. Deploy: open webhub-dx_module-deploy and click "Build with Parameters" from the menu.

Do this just once, no mater to which stages you are deploying.

FieldValue
webhubModuleNamepod-chatbot
webhubModuleVersionVersion of the published npm package (only the version), like "1.10.3"
targetStageSelect desired target stage DEV, ACC or RELEASE
(checkboxes)Keep them as they are.

Press "Build"

Observer the build process.

⚠️ PROD: When deploying to production, there is a step where you manually have to confirm you really want to deploy. Don't miss out on this, otherwise the build will be aborted.

manual step

Repeat this step 2 & 3 for every stage you want to release

3. ⚠️ Promote: Required for production

After deploying to production, the just built POD needs to be promoted to be available.

Open webhub-dx_module-promote and click "Build with Parameters" from the menu.

FieldValue
webhubModuleNamepod-chatbot
webhubModuleVersionVersion of the published npm package (only the version), like "1.10.3"

Press "Build"

Google Analytics

We have added google analytics support to the bot with docuemntation from https://confluence.axa.com/confluence/x/975VCg and https://confluence.axa.com/confluence/x/LNEXC

Usage

Add the following tag into your page:

<article
   class="o-pod-chatbot js-podchatbot-mount podchatbot">
</article>

No additional data properties must be set. All is done by the POD framework.

Configure ADA to run on different pages

  • Pass to any page where ADA is on it a hashtag with the follwing structure
  • ADA will welcome you if not already done with a short text and the intent
#adastart=i_start_claims

https://www.axa.ch/de/privatkunden.html#adastart=i_start_claims
  • Pass to any page where ADA is on it a hashtag with the follwing structure
  • Use the same principle as above but add additionally the command ",direct" to it
#adastart=i_greencard,direct

https://www.axa.ch/de/privatkunden.html#adastart=i_greencard,direct

Appendix

Manually publish POD Node package (release or pre-release)

The manual process would be:

  1. Be sure to be sure to be logged in with as timoteamims (NOTE: password is in KeePass)
  2. Check with npm whoami
  3. If needed change with npm logout, npm login
  4. Run npm run release or npm run pre-release for a pre-release. Soon you will be able to also set a tagged pre-release version in package.json like 1.11.0-alpha.0. As of February 2021, it's not supported by WebHub bot it's on their backlog). Using pre-release tags, allows you to test the pod in the context of the WebHub without to bump the SemVer without a reason (fast build/test cycles).

Keywords

FAQs

Package last updated on 10 Feb 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc