Any suggestions on how to implement a user authentication workflow for the agent? I’m wanting to send the user a unique code ( to an email or phone which they say is their account) which they can input in the chat that I can then use to authenticate. I’m open to other suggestions to do this. Not having variables make this alittle challenging as i’m on the self hosted community plan. Maybe a two agent approach?
Hey @A_Bradley , built-in chat authentication allows for only one credentials pair. What you are suggesting sounds reasonable to me. That would imply you keeping track of the credentials in some sort of database and let the user to proceed talking to your AI app if the credentials match against those in the database. You likely want to have an expiration set of each credentials which would also imply deleting or “flagging” those that have expired.
Alternatively, you would use some sort of a proxy in front of your n8n app that would perform the authentication for you before forwarding the query to the app.
i posted the topic AI Chat which response based on employee profile
But yet get any constructive feedback still i ain’t sure how n8n chatbot to identify “current user”. I guess we should script in n8n node to get session info? But i dont have the knowledge and an AI template would be much helpful lol