You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 12, 2022. It is now read-only.
|[Installation](#installation)|[Sample Projects](#sample-projects)|[Resources](#resources)|[Getting Started on Recast.AI](#getting-started-with-recastai)|[License](#license)|
5
+
|[Installation](#installation)|[Sample Projects](#sample-projects)|[Resources](#resources)|[Getting Started on SAP Conversational AI](#getting-started-with-sap-conversational-ai)|[License](#license)|
6
6
|---|---|---|---|---|
7
7
<div>
8
-
<ahref="https://slack.recast.ai/">💬 Questions / Comments? Join the discussion on our community Slack channel!</a>
8
+
<ahref="https://slack.cai.tool.sap">💬 Questions / Comments? Join the discussion on our community Slack channel!</a>
9
9
</div>
10
10
11
-
# Recast.AI - SDK Node.js
12
-
Recast.AI official SDK in Node.js
11
+
# SAP Conversational AI - SDK Node.js
12
+
SAP Conversational AI official SDK in Node.js
13
13
14
14
## Synospis
15
15
16
-
This module is a wrapper around the [Recast.AI](https://recast.ai/)[API](https://man.recast.ai/) API, and allows you to:
17
-
*[Analyse your text](https://github.com/RecastAI/SDK-NodeJS/wiki/Analyse-text)
18
-
*[Manage your conversation](https://github.com/RecastAI/SDK-NodeJS/wiki/Manage-your-conversation)
19
-
*[Receive and send messages](https://github.com/RecastAI/SDK-NodeJS/wiki/Receive-and-send-messages)
16
+
This module is a wrapper around the [SAP Conversational AI](https://cai.tool.sap/)[API](https://cai.tool.sap/docs/) API, and allows you to:
17
+
*[Analyse your text](https://github.com/SAPConversationalAI/SDK-NodeJS/wiki/Analyse-text)
18
+
*[Manage your conversation](https://github.com/SAPConversationalAI/SDK-NodeJS/wiki/Manage-your-conversation)
19
+
*[Receive and send messages](https://github.com/SAPConversationalAI/SDK-NodeJS/wiki/Receive-and-send-messages)
20
20
21
21
## Installation
22
22
23
23
Install the package using npm, as shown below:
24
24
```bash
25
-
npm install --save recastai
25
+
npm install --save sapcai
26
26
```
27
27
28
-
You can now use the SDK in your code.
28
+
You can now use the SDK in your code. All you need is your bot's token. In case you have enabled our versioning feature in the settings of your bot, you can refer to our [versioning documentation](https://cai.tools.sap/docs/concepts/versioning) to learn how to select the appropriate token for you versions and environments.
29
+
30
+
_Note:_ The `train` API needs to be initialized with the bot version. If versioning is not enabled for the bot, the default `v1` should be used. For more info see our documentation on [versioning](https://cai.tools.sap/docs/concepts/versioning).
29
31
30
32
#### ES5
31
33
32
34
Using the entire SDK:
33
35
```js
34
-
varrecastai=require('recastai').default
36
+
varsapcai=require('sapcai').default
35
37
36
-
var client =newrecastai('YOUR_TOKEN')
38
+
var client =newsapcai('YOUR_TOKEN')
37
39
```
38
40
39
41
Extracting one single API:
40
42
```js
41
-
varrecastai=require('recastai').default
43
+
varsapcai=require('sapcai').default
42
44
43
-
var converse =newrecastai.converse('YOUR_TOKEN')
45
+
var converse =newsapcai.converse('YOUR_TOKEN')
44
46
```
45
47
46
48
#### ES6
47
49
48
50
Using the entire SDK:
49
51
```js
50
-
importrecastaifrom'recastai'
52
+
importsapcaifrom'sapcai'
51
53
52
-
constclient=newrecastai('YOUR_TOKEN')
54
+
constclient=newsapcai('YOUR_TOKEN')
53
55
```
54
56
55
57
Extracting one single API:
56
58
```js
57
-
import { converse } from'recastai'
59
+
import { converse } from'sapcai'
58
60
59
61
constclientConverse=newconverse('YOUR_TOKEN')
60
62
```
61
63
62
64
## Sample projects
63
65
64
-
Check out our [NodeJS starter-kit](https://github.com/RecastAI/starter-NodeJS) for a usage example of the SDK.
66
+
Check out our [NodeJS starter-kit](https://github.com/SAPConversationalAI/starter-NodeJS) for a usage example of the SDK.
65
67
66
68
## Resources
67
-
*[Bot Builder Guide](https://recast.ai/docs): Best practices and tips to use the Recast.AI platform
68
-
*[API Documentation](https://man.recast.ai/)
69
-
*[Your first bot](https://blog.recast.ai/build-your-first-bot-with-recast-ai/) - Build your first bot with Bot Builder
70
-
*[Advanced chatbot tutorial(Moviebot)](https://recast.ai/blog/nodejs-chatbot-movie-bot/) - Overview of how to get started building your bot's server
69
+
*[Bot Builder Guide](https://cai.tool.sap/docs) - Best practices and tips to use the SAP Conversational AI platform
70
+
*[API Documentation](https://cai.tool.sap/docs/)
71
+
*[Your first bot](https://cai.tool.sap/blog/build-your-first-bot-with-recast-ai/) - Build your first bot with Bot Builder
72
+
*[Advanced chatbot tutorial(Moviebot)](https://cai.tool.sap/blog/nodejs-chatbot-movie-bot/) - Overview of how to get started building your bot's server
71
73
72
74
## Author
73
75
74
-
Jérôme Houdan, jerome.houdan@recast.ai
76
+
Jérôme Houdan, jerome.houdan@sap.com
75
77
76
-
You can follow us on Twitter at [@recastai](https://twitter.com/recastai) for updates and releases.
78
+
You can follow us on Twitter at [@sapcai](https://twitter.com/sapcai) for updates and releases.
77
79
78
-
## Getting started with Recast.AI
80
+
## Getting started with SAP Conversational AI
79
81
80
82
We build products to help enterprises and developers have a better understanding of user inputs.
81
83
82
84
-**NLP API**: a unique API for text processing, and augmented training.
83
-
-**Bot Building Tools**: all you need to create smart bots powered by Recast.AI's NLP API. Design even the most complex conversation flow, use all rich messaging formats and connect to external APIs and services.
85
+
-**Bot Building Tools**: all you need to create smart bots powered by SAP Conversational AI's NLP API. Design even the most complex conversation flow, use all rich messaging formats and connect to external APIs and services.
84
86
-**Bot Connector API**: standardizes the messaging format across all channels, letting you connect your bots to any channel in minutes.
85
87
86
88
Learn more about:
87
89
88
-
|[API Documentation](https://recast.ai/docs/api-reference/)|[Discover the platform](https://recast.ai/docs/create-your-bot)|[First bot tutorial](https://recast.ai/blog/build-your-first-bot-with-recast-ai/)|[Advanced NodeJS tutorial](https://recast.ai/blog/nodejs-chatbot-movie-bot/)|[Advanced Python tutorial](https://recast.ai/blog/python-cryptobot/)|
90
+
|[API Documentation](https://cai.tool.sap/docs/api-reference/)|[Discover the platform](https://cai.tool.sap/docs/create-your-bot)|[First bot tutorial](https://cai.tool.sap/blog/build-your-first-bot-with-recast-ai/)|[Advanced NodeJS tutorial](https://cai.tool.sap/blog/nodejs-chatbot-movie-bot/)|[Advanced Python tutorial](https://cai.tool.sap/blog/python-cryptobot/)|
0 commit comments