Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate APi #222

Open
canhlechitam opened this issue Apr 18, 2023 · 1 comment
Open

Integrate APi #222

canhlechitam opened this issue Apr 18, 2023 · 1 comment

Comments

@canhlechitam
Copy link

Hi, I want to integrate my own api into chatdollkit but don't know if this is possible, I searched but couldn't find any related documentation. Please give me documents if any, tks

@uezo
Copy link
Owner

uezo commented Apr 19, 2023

Hi @canhlechitam ,
To integrate your APIs into ChatdollKit, you can use APIs in Skill.

See https://github.com/uezo/ChatdollKit/blob/master/Documents/manual.md#Skill

This is the example of EchoSkill. This skill responds what user says.

response.AddVoiceTTS(request.Text);

Change that like below:

var resp = callYourApi(request.Text);
var message = makeMessageFromResp(resp);
response.AddVoiceTTS(message);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants