This module shows how to deploy and test a Node.js endpoint that generates a personalized PDF and sends it by email. You set environment variables for SendGrid and Experience Manager Forms, run the provided server.js, and reference the endpoint from a Journey Optimizer custom action.
You configure SENDGRID_API_KEY, SENDGRID_FROM, and AEM_BEARER, authenticate requests to SendGrid and Experience Manager Forms, and verify end-to-end delivery by submitting an adaptive form to trigger a Journey Optimizer journey in Experience Platform. The journey generates a personalized communication, creates a PDF rendition, and sends the PDF to the email address provided in the form.