API Documentation
Skills
Create skill
POST
/
api
/
v1
/
skills
curl --request POST \
--url https://api.elemente.ai/api/v1/skills \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Customer Support Representative",
"definition": "Inform the user about his recent refund, stating that we are currently in the process of facilitating the refund",
"callPrompt": "Inform the user about his recent refund, stating that we are currently in the process of facilitating the refund",
"whatsappPrompt": "Inform the user about his recent refund, stating that we are currently in the process of facilitating the refund",
"smsPrompt": "Inform the user about his recent refund, stating that we are currently in the process of facilitating the refund",
"emailPrompt": "Inform the user about his recent refund, stating that we are currently in the process of facilitating the refund",
"initialMessage": "Hi, thank you for reaching out to Happy Customer. This is {{aiName}}. How may I help you today?"
}'
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
application/json
Input data for creating a skills
The body is of type object
.
Response
201
skills created successfully
curl --request POST \
--url https://api.elemente.ai/api/v1/skills \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Customer Support Representative",
"definition": "Inform the user about his recent refund, stating that we are currently in the process of facilitating the refund",
"callPrompt": "Inform the user about his recent refund, stating that we are currently in the process of facilitating the refund",
"whatsappPrompt": "Inform the user about his recent refund, stating that we are currently in the process of facilitating the refund",
"smsPrompt": "Inform the user about his recent refund, stating that we are currently in the process of facilitating the refund",
"emailPrompt": "Inform the user about his recent refund, stating that we are currently in the process of facilitating the refund",
"initialMessage": "Hi, thank you for reaching out to Happy Customer. This is {{aiName}}. How may I help you today?"
}'