ai
POST
https://hermeticor.com /v1/ai/reply-draft Request body
application/json
threadobject[]requiredShow child parameters
fromstringrequiredtextstringrequiredgoalstring{
"thread": [
{
"from": "us",
"text": "string"
}
],
"goal": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/ai/reply-draft" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"thread":[{"from":"us","text":"string"}],"goal":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"text": "string",
"draft": true,
"model": "string"
}Schema
textstringrequireddraftbooleanrequiredmodelstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/ai/flow-from-text Draft a flow from a prompt; validated with the workflow validator, never saved (create it through /v1/workflows)
Request body
application/json
descriptionstringrequired{
"description": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/ai/flow-from-text" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"description":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"definition": {
"graph": {
"start": null,
"nodes": [
{
"id": "string",
"type": "send_email",
"config": {
"templateId": "string",
"versionId": "string",
"route": {
"connectionId": "string",
"poolId": "string",
"routePolicyId": "string"
},
"topicId": "string",
"replyToStep": "string",
"onBlocked": "continue",
"skipOnFailure": true,
"skipIfMessagedWithinHours": 0,
"filter": {
"type": "group",
"op": "and",
"negate": true,
"children": [
{}
]
},
"retries": 0,
"senderIdentityId": "string",
"replyTo": "string",
"oneClickUnsubscribe": true
},
"position": {
"x": 0,
"y": 0
},
"name": "string"
}
],
"edges": [
{
"id": "string",
"source": "string",
"sourceHandle": "string",
"target": "string"
}
]
},
"triggers": [
{
"type": "profile_created",
"reentry": {
"mode": "after_completion"
}
}
],
"settings": {
"purpose": "marketing",
"mode": "journey",
"filterCheck": "before_send",
"filterFailAction": "exit",
"profileFilter": {
"type": "group",
"op": "and",
"negate": true,
"children": [
{}
]
},
"goal": {
"kind": "event",
"eventName": "string",
"filter": {},
"definition": {
"type": "group",
"op": "and",
"negate": true,
"children": [
{}
]
},
"windowDays": 30,
"onReach": "exit"
},
"quietHours": "inherit",
"quietHoursAction": "wait",
"sendWindow": {
"startMin": 0,
"endMin": 0,
"weekdays": [
0
]
},
"smartSending": {
"skipIfMessagedWithinHours": 0,
"frequencyCap": {
"maxSends": 0,
"windowHours": 0
}
},
"enrollmentCap": {
"maxTotal": 0,
"maxConcurrent": 0
},
"activeWindow": {
"from": "2024-01-01T00:00:00Z",
"until": "2024-01-01T00:00:00Z"
},
"failureAlert": {
"userIds": [],
"emails": []
},
"timezoneSource": "profile",
"timezone": "UTC",
"exitOn": {
"type": "group",
"op": "and",
"negate": true,
"children": [
{}
]
},
"sequence": {
"steps": [],
"schedule": {
"weekdays": [
1,
2,
3,
4,
5
],
"startMin": 540,
"endMin": 1020,
"timezoneSource": "prospect",
"timezone": "UTC"
},
"mailbox": {
"sticky": true,
"onUnavailable": "pause"
},
"dailyNewLimit": 0,
"followUpPercent": 0,
"plainTextOnly": true,
"trackOpens": true,
"unsubscribeText": "string",
"spintaxMode": "random",
"variables": {},
"blocklist": {
"emails": [],
"domains": []
},
"reviewBeforeSend": true,
"reviewEachMessage": true,
"stop": {
"onReply": "human",
"onAutoReply": "continue",
"onOoo": "pause_until_return",
"onCompanyReply": "none"
},
"onCategory": [
{
"category": "positive",
"sequenceId": "string",
"stopCurrent": true
}
],
"ownerUserId": "string",
"scheduleId": "string",
"dedupe": {
"crossSequence": "skip",
"contactedWithinDays": 0,
"domain": false
},
"startAt": "2024-01-01T00:00:00Z",
"minGapMinutes": 0,
"senderOverrides": {},
"abm": {
"maxPerAccount": 5,
"onAccountReply": "stop"
}
}
}
},
"validation": {
"ok": true,
"errors": [
{
"severity": "error",
"code": "string",
"message": "string",
"nodeId": "string",
"fix": "string"
}
],
"warnings": [
{
"severity": "error",
"code": "string",
"message": "string",
"nodeId": "string",
"fix": "string"
}
]
},
"draft": true,
"model": "string"
}Schema
definitionobjectrequiredShow child parameters
graphobjectrequiredShow child parameters
startstringrequirednodesNodesItem2[]requirededgesEdgesItem2[]requiredtriggersTriggersItem2[]requiredsettingsobjectrequiredShow child parameters
purposestringrequiredmodestringrequiredfilterCheckstringrequiredfilterFailActionstringrequiredprofileFilterobjectgoalobjectquietHoursstring | WindowrequiredquietHoursActionstringsendWindowobjectsmartSendingobjectenrollmentCapobjectactiveWindowobjectfailureAlertobjecttimezoneSourcestringrequiredtimezonestringrequiredexitOnobjectsequenceobjectvalidationobjectrequiredShow child parameters
okbooleanrequirederrorsErrorsItem[]requiredShow child parameters
severitystringrequiredcodestringrequiredmessagestringrequirednodeIdstringfixstringwarningsErrorsItem[]requiredShow child parameters
severitystringrequiredcodestringrequiredmessagestringrequirednodeIdstringfixstringdraftbooleanrequiredmodelstringrequiredPOST
https://hermeticor.com /v1/campaigns/{id}/ai-summary A plain-language summary of the campaign report, written from its own figures only. Needs AI assist switched on; sends the figures (no recipient data) to the AI provider
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/campaigns/{id}/ai-summary" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/commerce/stores/{id}/ai-summary A plain-language summary of a store's orders and carts, written from its own totals only. Needs AI assist switched on; no customer data leaves
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/commerce/stores/{id}/ai-summary" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/profiles/{id}/ai-commerce-summary A plain-language read of one customer's buying behaviour (frequency, spend, top products, carts), from their order figures only. Needs AI assist switched on; no name, email or address leaves
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/profiles/{id}/ai-commerce-summary" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/commerce/orders/{id}/ai-summary A plain-language status of one order (payment, fulfilment, refunds, contents). Needs AI assist switched on; the shipping address and links never leave
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/commerce/orders/{id}/ai-summary" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated