What the model is told
Create a Jira task. Give it a short summary and a description with the detail the team needs. Returns the new issue's id and key (for example SUP-124); tell the customer the key.
Request
POSThttps://YOUR_DOMAIN.atlassian.net/rest/api/3/issue
Headers
Content-Typeapplication/jsonAuthorizationBasic YOUR_BASE64_EMAIL_AND_API_TOKEN
Body
{
"fields": {
"project": {
"key": "YOUR_PROJECT_KEY"
},
"summary": "{{summary}}",
"issuetype": {
"name": "Task"
},
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "{{description}}"
}
]
}
]
}
}
}Parameters
summary stringA one-line summary of the issue.description stringThe detail of the issue.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "406a9965-f154-45eb-a80f-c56103c904d2",
"type": "HTTP_REQUEST",
"label": "Create Jira Issue",
"name": "create_jira_issue",
"customName": false,
"description": "Create a Jira task. Give it a short summary and a description with the detail the team needs. Returns the new issue's id and key (for example SUP-124); tell the customer the key.",
"parameters": [
{
"name": "summary",
"type": "string",
"description": "A one-line summary of the issue."
},
{
"name": "description",
"type": "string",
"description": "The detail of the issue."
}
],
"config": {
"endpoint": {
"method": "POST",
"url": "https://YOUR_DOMAIN.atlassian.net/rest/api/3/issue"
},
"headers": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "Basic YOUR_BASE64_EMAIL_AND_API_TOKEN"
}
],
"body": "{\n \"fields\": {\n \"project\": {\n \"key\": \"YOUR_PROJECT_KEY\"\n },\n \"summary\": \"{{summary}}\",\n \"issuetype\": {\n \"name\": \"Task\"\n },\n \"description\": {\n \"type\": \"doc\",\n \"version\": 1,\n \"content\": [\n {\n \"type\": \"paragraph\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"{{description}}\"\n }\n ]\n }\n ]\n }\n }\n}",
"timeout": null
}
}
}IDs are regenerated on every copy.