LangChain
Diseño del flujo conversacional para el WhatsApp Chatbot en el proyecto whatlet, utilizando LangChain. Ver también: Implementación de LangChain.
Flujo de trabajo para:
- Génesis
- Financiamiento
- Ahorro
Avisar
Hello! I am a chatbot that can help you perform several ETH transactions. You can instruct me to:
1. Transfer ETH to another user
2. Make a funding request
3. Request a loan from another user (P2P Lending)
4. Save in a DeFi protocol
5. Check balance
Please communicate your intention in natural language. You can write in English or Spanish. Make sure to mention the recipient, where the recipient is an address.
For example:
- "I want to transfer 10 dollars to Tony."
- "Quiero transferir 10 dolares a Tony."
After your message, I will generate a structured response to confirm the transaction details. You can then reply 'Yes' to confirm or 'No' to cancel.
Ejemplo de interacción
Usuario A
[1] Hello!
Respuesta del robot
[1 a] Hello $(CURRENT_USER_NAME)
I'm going to check if you have a wallet linked to this number. If I don't find one, I'll create one for you.
-------
Your wallet is $(CURRENT_WALLET)
Usuario
[2] I want to request 10 dollars from Tony
Respuesta del robot
[2 a] You are about to request 10 $USDC from Tony (+52-551-699-2713). Reply 'Yes' to confirm and 'No' to cancel
Respuesta afirmativa del usuario
[3] Yes
Confirmación del robot
[3 a] Request sent.
Mensaje para Tony
[3 b] You have a request to transfer $10 USDC to $CURRENT_USER.
Reply Yes to accept, No to deny
Respuesta afirmativa de Tony
[4] Yes
Confirmación del robot
[4 b] Transfer of $10 sent to UserA.
[4 a] Transfer of $10 received from Tony
El usuario A verifica el saldo
[5] What's my balance?
Respuesta del robot
[5 a] Your balance is $10.
El usuario guarda una parte
[6] Save $5
Confirmación del robot
[6 a] You are about to send 5 $USDC to AAVE. Reply Yes to continue and No to cancel
Respuesta afirmativa del usuario A
[7] Yes
Respuesta del robot
[7a] You are saving 5 USDC in AAVE