genetic-orange•15mo ago
How can I set the timetable?
Hello, I wanna set my bot, that if the client is asking the question at 3am, the bot answearing him that the shop is closed
3 Replies
To set up a Telegram bot using Voiceflow and Telegraf, you can follow these steps:
1. Telegram Setup: Add your Telegram token to your .env file in the property BOTTOKEN.
2. Telegraf Setup: Create a bot using the following code lines:
3. Voiceflow Setup: Create a new function that takes Telegraf ctx, userID, and a request in as arguments. Inside the function, make an API call to the Voiceflow /interact endpoint.
4. Handling User Input: Replace the 'hi' utterance with a regex like .+. This means that the bot will listen for everything. All the text received will be passed directly to Voiceflow.
For more detailed information, you can refer to the Voiceflow Telegram Integration Guide.
You can use a JavaScript step and just set a message. No need for a LLM to do it.
genetic-orangeOP•15mo ago
do you have the code? Cause I have been searching and asking GPT, but I didn't get any result