cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy NodeJS app build for SAP CAI, in Neo environment

AbhishekSharma
Active Contributor
0 Kudos

Hi Gurus,

Is it possible to deploy NodeJS application created for SAP CAI and run bot. This NodeJS application will connect to backend gateway service through cloud connector.

OR

We must to have Cloud Foundry subscription or Cloud Foundry Add-on package to be able to use NodeJS.

Please guide...

Thanks-

Abhishek

Accepted Solutions (0)

Answers (3)

Answers (3)

JonasB
Contributor

Hi Abhishek,

the Node.js application can be hosted anywhere (as long as it's accessible from the internet). When using the SAP Cloud Connector, it can be either SAP Cloud Platform Cloud Foundry or SAP Cloud Platform Neo.

Please also be aware that you can now directly make API service calls to an on-premise system via the Cloud Connector from SAP Conversational AI (when using the new Web Client) by referencing the destination in the URL field of an API service configuration. This is the recommended approach when aiming for end-user SSO. In this case you do need the subaccount on SAP Cloud Platform Cloud Foundry and the subscription to SAP Conversational AI.

Documentation:
https://help.sap.com/viewer/a4522a393d2b4643812b7caadfe90c18/1911/en-US/31f328484e0f40f98d12a507e6f7...

https://help.sap.com/viewer/a4522a393d2b4643812b7caadfe90c18/1911/en-US/91d0a85c9cb04e7297e3dd23ae7a...

Regards
Jonas

AbhishekSharma
Active Contributor
0 Kudos

Thanks jonas.brand for guidance... The current scenario is we have CAI bot created, we also have NodeJS application acting as middleware between CAI and NW Gateway System and calls gateway service. Once we get response from service we convert JSON to CAI readable format and sent to CAI.

This scenario is done using trial Cloud Foundry account. We haven't found any blog or documentation where Neo Environment is used instead of Cloud Foundry...

So my question is can we implement exactly same scenario using Neo environment just by deploying NodeJs to Neo and doing configuration Connectivity, Destination and Trust Management ?

Looking for NodeJS specifically because there we have more control on how to convert JSON data sent to CAI, while using API call not sure if this flexibility is available.

Please guide.

Thanks-

Abhishek

JonasB
Contributor
0 Kudos

Node.js applications can not be deployed to SAP Cloud Platform Neo. So you would need to use Java in that case - I guess not what you're looking for.

Regards
Jonas

sudipghosh
Active Contributor
AbhishekSharma
Active Contributor
0 Kudos

Thanks sudip.ghosh4 for sharing reference link.

AbhishekSharma
Active Contributor
0 Kudos

Hi sudip.ghosh4

I am getting Error posted on below question.

https://answers.sap.com/questions/12932532/sap-cai-chatbot-timeout.html

I am also seeing other also facing same error related to Proxy.

https://answers.sap.com/questions/12919781/connection-to-connectivityproxyinternalcfeu10hanao.html?c...

I am following both questions you may guide us there...

May you please help on this ?

Thanks-

Abhishek

sudipghosh
Active Contributor

Hello Abhishek,

There are two way, first one use odata provisioning service in NEO environment to expose your odata service in internet, so that it can be called from anywhere like AWS, GCP, Cloudfoundy, even someone else's postman or rest client.. Have a look at the step by step link

Second option you can use cloud connector in cloud foundry and use destination service to call it from node.js application

AbhishekSharma
Active Contributor
0 Kudos

Hi Sudip, thanks so much for your guidance. I am using second option currently but always getting timeout error when node app try to call backend gw service. I have posted question url is below.


https://answers.sap.com/questions/12943371/sap-conversational-ai-chatbot-timeout-when-connect.html


I have tagged you as well when I posted that question... looking for your expert guidance to make it work please help..


thanks-

Abhishek