{
	"name": "epilot: Kundenportal-Lead anlegen (Instant, Entwurf)",
	"flow": [
		{
			"id": 1,
			"module": "app#epilot-t43y7n:watchEvents",
			"version": 1,
			"parameters": {},
			"mapper": {},
			"metadata": {
				"expect": []
			}
		},
		{
			"id": 2,
			"module": "app#epilot-t43y7n:upsertRecord",
			"version": 1,
			"parameters": {},
			"mapper": {
				"uniqueKey": [
					"email.0.email"
				],
				"entitySchema": "contact",
				"first_name": "{{1.entity.contact_first_name}}",
				"last_name": "{{1.entity.contact_last_name}}",
				"email": [
					{
						"email": "{{1.entity.contact_email}}"
					}
				]
			},
			"metadata": {
				"expect": []
			}
		},
		{
			"id": 3,
			"module": "app#epilot-t43y7n:createRecord",
			"version": 1,
			"parameters": {},
			"mapper": {
				"entitySchema": "opportunity"
			},
			"metadata": {
				"expect": []
			}
		},
		{
			"id": 4,
			"module": "app#epilot-t43y7n:addRelations",
			"version": 1,
			"parameters": {},
			"mapper": {
				"entitySchema": "opportunity",
				"entityId": "{{3._id}}",
				"relations": [
					{
						"attribute": "contacts",
						"entity_id": "{{2._id}}"
					}
				]
			},
			"metadata": {
				"expect": []
			}
		},
		{
			"id": 5,
			"module": "app#epilot-t43y7n:createNote",
			"version": 1,
			"parameters": {},
			"mapper": {
				"entityId": "{{3._id}}",
				"content": "Lead aus dem Kundenportal: {{1.entity.description}}"
			},
			"metadata": {
				"expect": []
			}
		}
	],
	"metadata": {
		"version": 1
	}
}
