Open heiheihang opened 1 year ago
How to distinguish between the cases where applicant sends message to referrer and referrer sends message to applicant?
My current thought of the command is like
/chat {applicationID} {message}
Our backend knows who is sending this message. And from #10 we can tell that the other user will receive the message
I forgot that the Lambda will also take the message from the user as input. ඞඞඞ
Ideally there should be an additional way to send a message which does not involve using commands. It can be achieved like this:
This also handles the situation of talking to multiple applicants/referrers, eliminating the users' need to keep track of application IDs.
However the bot will need to know which user to relay the message to when the applicant ID is not specified.
ඞඞඞ
I agree with your suggestion. Suggestion 2 makes sense as we are likely to display the application ID to the applicant anyway.
We need to create an AWS lambda that facilitates the communication between applicants and referrers.
The AWS Lambda should take the
applicationId
of the referral, and it should automatically infer that User A wants to send a message to User B