Skip to main content
Credal | Documentation
current

Search documentation

Type to search this documentation.

Send Message

POST/v0/copilots/sendMessageSend Message

Deprecated. Use the [v1 Agents API](/api-reference/v-1/api-reference/agents) instead: send a message with POST /v1/agents/sendMessage, then poll for the response with GET /v1/agents/fetchAgentResponse.

Request body

application/json
object
agentIdstring · uuidrequired

Credal-generated Agent ID to specify which agent to route the request to.

conversationIdstring · uuid

Credal-generated conversation ID for sending follow up messages. Conversation ID is returned after initial message. Optional, to be left off for first messages on new conversations.

inputVariablesarray of object

Optional input variables to be used in the message. Map the name of the variable to a list of urls.

Show child attributes
Show array items
idsarray of string · uuidrequired
Show child attributes
namestringrequired
messagestringrequired

The message you want to send to your agent.

userEmailstringrequired

The user profile you want to use when sending the message.

Example request
{
  "agentId": "00000000-0000-0000-0000-000000000000",
  "conversationId": "00000000-0000-0000-0000-000000000000",
  "inputVariables": [
    {
      "ids": [
        "00000000-0000-0000-0000-000000000000"
      ],
      "name": "string"
    }
  ],
  "message": "string",
  "userEmail": "string"
}

Responses

200Response with status 200application/json
objectcopilots_SendAgentMessageResponse

SendAgentMessageResponse

sendChatResultvaluerequired
Show child attributes
oneOf · 2 options
Option 1object

Returned when there is a reply fetched from the agent.

conversationIdstring · uuidrequired
inserted_audit_logobjectrequired
Show child attributes
idstring · uuidrequired
messageIdstring · uuidrequired
referencedSourcesarray of objectrequired
Show child attributes
Show array items
externalResourceIdobjectrequired
Show child attributes
externalResourceIdstringrequired
resourceTypestringrequired

one of "GOOGLE_DRIVE_ITEM", "MICROSOFT_DRIVE_ITEM", "ZENDESK_TICKET", "ZENDESK_ARTICLE", "ZENDESK_GROUP", "ZENDESK_ARTICLE_SECTION", "ZENDESK_ARTICLE_CATEGORY", "CONFLUENCE_PAGE", "CONFLUENCE_SPACE", "JIRA_TICKET", "JIRA_PROJECT", "SALESFORCE_TASK", "BOX_FILE", "BOX_FOLDER", "NOTION_PAGE", "NOTION_DATABASE", "SLACK_CHANNEL", "MONGO_COLLECTION_SYNC", "UNKNOWN"

idstringrequired
namestringrequired
urlstring
responseobjectrequired
Show child attributes
dataChunkstringrequired
messagestringrequired
structuredOutputvalue

Any type

sourcesInDataContextarray of objectrequired
Show child attributes
typestringrequired

Discriminator value: ai_response_result

one of "ai_response_result"

warningsarray of stringrequired
Show child attributes
webSearchResultsarray of objectrequired
Show child attributes
Show array items
contentsstringrequired
titlestringrequired
urlstringrequired
Option 2object

Returned when Credal detects possible infosec violations and blocks the message.

blocksarray of stringrequired
Show child attributes
conversationIdstring · uuidrequired
inserted_audit_logobjectrequiredcopilots_InsertedAuditLog ↑
typestringrequired

Discriminator value: blocked_result

one of "blocked_result"

warningsarray of stringrequired
Show child attributes
Example response
{
  "sendChatResult": {
    "blocks": [
      "string"
    ],
    "conversationId": "00000000-0000-0000-0000-000000000000",
    "inserted_audit_log": {
      "id": "00000000-0000-0000-0000-000000000000"
    },
    "type": "blocked_result",
    "warnings": [
      "string"
    ]
  }
}
Documentation menu