Skip to content
This repository was archived by the owner on Aug 12, 2022. It is now read-only.

Commit 5cbccf1

Browse files
author
Stefan Selent
committed
Fix new domain name
1 parent 827d34f commit 5cbccf1

File tree

4 files changed

+26
-30
lines changed

4 files changed

+26
-30
lines changed

README.md

+9-13
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<p align="center">
2-
<img src="https://cdn.cai.tool.sap/brand/sapcai/sap-cai-black.svg" />
2+
<img src="https://cdn.cai.tools.sap/brand/sapcai/sap-cai-black.svg" />
33
</p>
44

55
| [Installation](#installation) | [Sample Projects](#sample-projects) | [Resources]( #resources) | [Getting Started on SAP Conversational AI]( #getting-started-with-sap-conversational-ai) | [License](#license) |
66
|---|---|---|---|---|
77
<div>
8-
<a href="https://slack.cai.tool.sap">💬 Questions / Comments? Join the discussion on our community Slack channel!</a>
8+
<a href="https://slack.cai.tools.sap">💬 Questions / Comments? Join the discussion on our community Slack channel!</a>
99
</div>
1010

1111
# SAP Conversational AI - SDK Node.js
1212
SAP Conversational AI official SDK in Node.js
1313

1414
## Synospis
1515

16-
This module is a wrapper around the [SAP Conversational AI](https://cai.tool.sap/) [API](https://cai.tool.sap/docs/api-reference) API, and allows you to:
16+
This module is a wrapper around the [SAP Conversational AI](https://cai.tools.sap/) [API](https://cai.tools.sap/docs/api-reference) API, and allows you to:
1717
* [Analyse your text](https://github.com/SAPConversationalAI/SDK-NodeJS/wiki/Analyse-text)
1818
* [Manage your conversation](https://github.com/SAPConversationalAI/SDK-NodeJS/wiki/Manage-your-conversation)
1919
* [Receive and send messages](https://github.com/SAPConversationalAI/SDK-NodeJS/wiki/Receive-and-send-messages)
@@ -66,14 +66,10 @@ const clientConverse = new converse('YOUR_TOKEN')
6666
Check out our [NodeJS starter-kit](https://github.com/SAPConversationalAI/starter-NodeJS) for a usage example of the SDK.
6767

6868
## Resources
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/api-reference)
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
73-
74-
## Author
75-
76-
Jérôme Houdan, [email protected]
69+
* [Bot Builder Guide](https://cai.tools.sap/docs) - Best practices and tips to use the SAP Conversational AI platform
70+
* [API Documentation](https://cai.tools.sap/docs/api-reference)
71+
* [Your first bot](https://cai.tools.sap/blog/build-your-first-bot-with-recast-ai/) - Build your first bot with Bot Builder
72+
* [Advanced chatbot tutorial(Moviebot)](https://cai.tools.sap/blog/nodejs-chatbot-movie-bot/) - Overview of how to get started building your bot's server
7773

7874
You can follow us on Twitter at [@sapcai](https://twitter.com/sapcai) for updates and releases.
7975

@@ -87,12 +83,12 @@ We build products to help enterprises and developers have a better understanding
8783

8884
Learn more about:
8985

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/) |
86+
| [API Documentation](https://cai.tools.sap/docs/api-reference/) | [Discover the platform](https://cai.tools.sap/docs/create-your-bot) | [First bot tutorial](https://cai.tools.sap/blog/build-your-first-bot-with-recast-ai/) | [Advanced NodeJS tutorial](https://cai.tools.sap/blog/nodejs-chatbot-movie-bot/) | [Advanced Python tutorial](https://cai.tools.sap/blog/python-cryptobot/) |
9187
|---|---|---|---|---|
9288

9389
## License
9490

95-
Copyright (c) [2019] [SAP Conversational AI](https://cai.tool.sap)
91+
Copyright (c) [2019] [SAP Conversational AI](https://cai.tools.sap)
9692

9793
Permission is hereby granted, free of charge, to any person obtaining a copy
9894
of this software and associated documentation files (the "Software"), to deal

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"keywords": [
2121
"sapcai"
2222
],
23-
"author": "Jerome Houdan <[email protected]> (https://cai.tool.sap)",
23+
"author": "SAP CAI team",
2424
"license": "MIT",
2525
"bugs": {
2626
"url": "https://github.com/SAPConversationalAI/SDK-NodeJs/issues"

spec/test.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ describe('Client class', () => {
5858
const client = new Client(TOKEN)
5959

6060
describe('textRequest', () => {
61-
nock('https://api.cai.tool.sap')
61+
nock('https://api.cai.tools.sap')
6262
.post('/v2/request')
6363
.once()
6464
.reply(200, json)
6565

66-
nock('https://api.cai.tool.sap')
66+
nock('https://api.cai.tools.sap')
6767
.post('/v2/request')
6868
.once()
6969
.reply(404, 'invalid parameter')
@@ -94,12 +94,12 @@ describe('Client class', () => {
9494
})
9595

9696
describe('textConversation', () => {
97-
nock('https://api.cai.tool.sap')
97+
nock('https://api.cai.tools.sap')
9898
.post('/v2/converse')
9999
.once()
100100
.reply(200, json)
101101

102-
nock('https://api.cai.tool.sap')
102+
nock('https://api.cai.tools.sap')
103103
.post('/v2/converse')
104104
.once()
105105
.reply(404, 'invalid parameter')
@@ -249,12 +249,12 @@ describe('Conversation class', () => {
249249
describe('Train class', () => {
250250
const client = new Client(TOKEN, LANGUAGE, BOT_VERSION, USER_SLUG, BOT_SLUG)
251251
describe('Bots api', () => {
252-
nock('https://api.cai.tool.sap')
252+
nock('https://api.cai.tools.sap')
253253
.get(`/v2/users/${USER_SLUG}/bots/${BOT_SLUG}`)
254254
.once()
255255
.reply(200, 'success')
256256

257-
nock('https://api.cai.tool.sap')
257+
nock('https://api.cai.tools.sap')
258258
.put(`/v2/users/${USER_SLUG}/bots/${BOT_SLUG}`, { name: 'foo' })
259259
.once()
260260
.reply(200, {})
@@ -277,17 +277,17 @@ describe('Train class', () => {
277277
})
278278

279279
describe('Entities api', () => {
280-
nock('https://api.cai.tool.sap')
280+
nock('https://api.cai.tools.sap')
281281
.get(`/v2/users/${USER_SLUG}/bots/${BOT_SLUG}/versions/${BOT_VERSION}/dataset/entities`)
282282
.once()
283283
.reply(200, 'success')
284284

285-
nock('https://api.cai.tool.sap')
285+
nock('https://api.cai.tools.sap')
286286
.get('/v2/entities')
287287
.once()
288288
.reply(200, 'success')
289289

290-
nock('https://api.cai.tool.sap')
290+
nock('https://api.cai.tools.sap')
291291
.post('/v2/entities', { slug: 'foo' })
292292
.once()
293293
.reply(200, {})
@@ -323,7 +323,7 @@ describe('Train class', () => {
323323
const synonymSlug = 'mySynonym'
324324
const data = { slug: 'myGazette' }
325325

326-
nock('https://api.cai.tool.sap')
326+
nock('https://api.cai.tools.sap')
327327
.get(`/v2/users/${USER_SLUG}/bots/${BOT_SLUG}/versions/${BOT_VERSION}/dataset/gazettes`)
328328
.once().reply(200, 'success')
329329
.get(`/v2/users/${USER_SLUG}/bots/${BOT_SLUG}/versions/${BOT_VERSION}/dataset/gazettes/${slug}`)

src/apis/constants.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
export default {
2-
REQUEST_ENDPOINT: 'https://api.cai.tool.sap/v2/request',
3-
CONVERSE_ENDPOINT: 'https://api.cai.tool.sap/v2/converse',
4-
DIALOG_ENDPOINT: 'https://api.cai.tool.sap/build/v1',
5-
CONVERSATION_ENDPOINT: 'https://api.cai.tool.sap/connect/v1/messages',
6-
MESSAGE_ENDPOINT: 'https://api.cai.tool.sap/connect/v1/conversations/:conversation_id/messages',
7-
TRAIN_ENDPOINT: 'https://api.cai.tool.sap/train/v2',
2+
REQUEST_ENDPOINT: 'https://api.cai.tools.sap/v2/request',
3+
CONVERSE_ENDPOINT: 'https://api.cai.tools.sap/v2/converse',
4+
DIALOG_ENDPOINT: 'https://api.cai.tools.sap/build/v1',
5+
CONVERSATION_ENDPOINT: 'https://api.cai.tools.sap/connect/v1/messages',
6+
MESSAGE_ENDPOINT: 'https://api.cai.tools.sap/connect/v1/conversations/:conversation_id/messages',
7+
TRAIN_ENDPOINT: 'https://api.cai.tools.sap/train/v2',
88

99
ACT_ASSERT: 'assert',
1010
ACT_COMMAND: 'command',

0 commit comments

Comments
 (0)