{
	"conversation": [
		{
			"role": "user",
			"text": "We need a lead-capture form on our site that pipes new sign-ups into our CRM and sends them a thank-you email."
		},
		{
			"role": "assistant",
			"text": "What fields on the form, and what CRM are you using?"
		},
		{
			"role": "user",
			"text": "HubSpot. Form fields: name, email, company, and an interest-level dropdown with options starter / professional / enterprise."
		},
		{
			"role": "assistant",
			"text": "Plan: form trigger → HubSpot create contact (firstname + lastname split from `name`, email, company, custom property `interest_level`) → SendGrid confirmation email. What should the email say?"
		},
		{
			"role": "user",
			"text": "Subject 'Thanks for reaching out, {name}!' and the body should mention their company."
		}
	],
	"messageBudget": 6,
	"complexity": "medium",
	"tags": ["build", "form-trigger", "hubspot", "sendgrid", "crm"],
	"triggerType": "form",
	"executionScenarios": [
		{
			"name": "happy-path",
			"description": "A complete form submission creates a HubSpot contact and sends confirmation",
			"dataSetup": "The form receives: name='Sarah Chen', email='sarah@techstartup.io', company='TechStartup Inc', interest_level='enterprise'. The HubSpot node returns a success response with a contact ID. The SendGrid node returns a success response.",
			"successCriteria": "The workflow executes without errors. A HubSpot contact is created with firstname='Sarah', lastname='Chen', email='sarah@techstartup.io', company='TechStartup Inc', interest_level='enterprise'. A confirmation email is sent via SendGrid to sarah@techstartup.io mentioning TechStartup Inc."
		},
		{
			"name": "single-name",
			"description": "The submitted name has no space (single name, no last name)",
			"dataSetup": "The form receives: name='Ravi', email='ravi@example.com', company='Freelance', interest_level='starter'. The HubSpot and SendGrid nodes return success responses.",
			"successCriteria": "The workflow handles a single name without crashing. The HubSpot contact is created with the name handled gracefully (either firstname='Ravi' with empty lastname, or the full name in firstname). The confirmation email is sent."
		}
	]
}
