Description: |
We are looking for a backend developer to build a controller function that creates a scheduled communication activity for a contact based on a selected template and message number. The function will retrieve related information such as contact details, communication template content, and any linked account or lead data. It will dynamically generate message content by replacing template variables with actual values pulled from the system, and calculate scheduling dates based on configuration settings.
The final output will be a new communication plan record, populated with the appropriate message content, scheduling details, status, and source information. The developer should use Node.js along with an ORM such as Sequelize or Prisma. The code should be clean, reusable, and include basic error handling and a test case to validate the logic. |